Re: Shell script not working in 64bit environment.
Re: Shell script not working in 64bit environment.
- Subject: Re: Shell script not working in 64bit environment.
- From: Eric Saunders <email@hidden>
- Date: Wed, 28 Jul 2010 15:18:55 -0400
That will definately prevent some potential for error, but only 3 people have had access to test and I KNOW I dod not put any spaces (or anything non Alpha-numeric) in the gid field. It seems as though something is not formed properly for the unix side of things when I use it as written in 10.6. Or that is wont send the event in 10.6 for some reason. I am terribly flustered...
Eric
On Wed, Jul 28, 2010 at 3:13 PM, KOENIG Yvan
<email@hidden> wrote:
Le 28 juil. 2010 à 20:42, Eric Saunders a écrit :
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"
I assume that gid may embed space characters so it may be useful to use
quoted form of gid
Yvan KOENIG (VALLAURIS, France) mercredi 28 juillet 2010 21:13:28
_______________________________________________
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
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