• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Shell script not working in 64bit environment.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Shell script not working in 64bit environment.


  • Subject: Re: Shell script not working in 64bit environment.
  • From: KOENIG Yvan <email@hidden>
  • Date: Wed, 28 Jul 2010 21:13:35 +0200


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
  • Follow-Ups:
    • Re: Shell script not working in 64bit environment.
      • From: Eric Saunders <email@hidden>
References: 
 >Shell script not working in 64bit environment. (From: Eric Saunders <email@hidden>)

  • Prev by Date: Shell script not working in 64bit environment.
  • Next by Date: Re: Shell script not working in 64bit environment.
  • Previous by thread: Shell script not working in 64bit environment.
  • Next by thread: Re: Shell script not working in 64bit environment.
  • Index(es):
    • Date
    • Thread