Hi Erik,
can you explain where put the script?
Can you send me the tar of you script?
my email: balestri...@mag-data.com

Thank you!


Erik Walker <erik1...@gmail.com> ha scritto:

> Hi Massimo,
> I had the same problem and solved it by:
> creating  cmd-Application with: sudo mount -t cifs //IPXYZ/otcmount
> /var/tmp -o user=otc
> creating cmd-Application with:sudo bash /var/tmp/./script.sh
>
> here is the script:
>
> #####send dns update
> ADDR=`ifconfig | grep inet | grep -v 127 | cut -d: -f2| cut -d " " -f1`
> HOST=`hostname`
> ALIAS=.ALIASXYZ
> HOST=$HOST$ALIAS
> echo "server DNS-IP" > /var/tmp/$HOST.txt
> echo "update add $HOST 259200 A $ADDR" >> /var/tmp//$HOST.txt
> echo "send" >> /var/tmp//$HOST.txt
>
> sudo nsupdate /var/tmp/$HOST.txt
>
> it writes a txt-file to the cifs-mount.share and sends the hostname to the
> dns-server. it works perfectly for me.
>
>
>

-- 
Responsabile EDP
Massimo Balestrieri
Tel. +39 0521 525311
Fax +39 0521 525369
E-Mail: massimo.balestri...@mag-data.com
Web: www.mag-data.com

------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
The Open Source Thin Client Solution http://openthinclient.org
openthinclient-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openthinclient-user

Reply via email to