Shell script not working in 64bit environment.
Shell script not working in 64bit environment.
- Subject: Shell script not working in 64bit environment.
- From: Eric Saunders <email@hidden>
- Date: Wed, 28 Jul 2010 14:42:39 -0400
First off, let me state that I know next to nothing about shell scripting. I got a working shell script from an IT guy who got it from another IT guy who works on our netspective servers. It essentially maps your ip to the correct netspective group (I think that is accurate).
Anyway, I created a functional script app that did the job in 10.5, but in 10.6 fails it to function. The app insisted on installing Rosetta, which is not acceptable for some reason, so I re-compiled and saved as an app again, and now nothing happens on the netspective server. I have done everything I can think of so I am now pleading for help. And some explanation if possible.
TIA
Eric
set gid to text returned of (display dialog "please enter your global id.
(ex. John A Smitherton has a global id of JAS50)" default answer "JAS50")
set IPList to {"the.needed.IP.1", "the.needed.IP.2", "the.needed.IP.3", "the.needed.IP.4", "the.needed.IP.5", "the.needed.IP.6", "the.needed.IP.7"}
display dialog (item 1 of IPList)
repeat with NETSPECTIVEIP in IPList
set themessage to "echo -ne \"WF01\"MYDOMAINGOESHERE\"\\\\\"" & gid & "\"\\0\" > /dev/udp/" & NETSPECTIVEIP & "/2020 | /bin/bash"
do shell script themessage
end repeat
do shell script "echo \"`date` \"MYDOMAINGOESHERE\"\\\\" & gid & " logging on\" >> /tmp/logon.txt"
This electronic message contains information from MeadWestvaco Corporation or
subsidiary companies, which may be confidential, privileged or otherwise protected
from disclosure. The information is intended to be used solely by the recipient(s)
named. If you are not an intended recipient, be aware that any review, disclosure,
copying, distribution or use of this transmission or its contents is prohibited. If you
have received this transmission in error, please notify MeadWestvaco immediately
at email@hidden.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden