Re: command line release/renew for do shell script
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.