• 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: command line release/renew for do shell script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: command line release/renew for do shell script


  • Subject: Re: command line release/renew for do shell script
  • From: Deivy Petrescu <email@hidden>
  • Date: Wed, 29 May 2002 18:06:23 -0400

At 0:49 PM -0700 5/29/02, Alatorre, Michael wrote:
For our wireless PowerBook users using OS X on campus, I have need to write
a script to execute DHCP release/renew. I'm a CLI newbie, but I'm hoping
it's possible to do a release / renew from the Terminal's command line, but
obviously I don't know what the command(s) would be. If someone from the
list is familiar with the UNIX syntax for doing such and can let me know, I
hope to use 'do shell script' to accomplish the goal. Any input is most
appreciated. Thanks in advance.

Michael Alatorre (mailto:email@hidden)
EIS Liaison Analyst
Cedars-Sinai Health System (http://www.cedars-sinai.edu/)
Medical Affairs: 310.423.6237 310.423.0448 (fax)

the command you are looking for is ifconfig.

ifconfig eth0 IPADDRESS netmask NETMASK broadcast BROADCAST
ifconfig eth0 down

Check the syntax. You do not need all the the info on the first command.
The second releases the interface.
The full path is /sbin/ifconfig/

Regards
--
Deivy Petrescu
http://www.dicas.com
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >command line release/renew for do shell script (From: "Alatorre, Michael" <email@hidden>)

  • Prev by Date: Re: Entourage Script for Tasks
  • Next by Date: Re: Entourage Script for Tasks
  • Previous by thread: command line release/renew for do shell script
  • Next by thread: Need help creating this script
  • Index(es):
    • Date
    • Thread