Re: [newbie] scripting problems

1999-08-09 Thread Theo Brinkman
] To: [EMAIL PROTECTED] Sent: Saturday, August 07, 1999 10:16 AM Subject: Re: [newbie] scripting problems OK, PATH=$PATH:. worked. I set a variable in that script: IPADDR=`/sbin/ifconfig eth1 | grep "inet addr:" | cut -f2 -d: | cut -f1 -d" "`

Re: [newbie] scripting problems

1999-08-07 Thread Jo
OK, PATH=$PATH:. worked. I set a variable in that script: IPADDR=`/sbin/ifconfig eth1 | grep "inet addr:" | cut -f2 -d: | cut -f1 -d" "` How can I check if this variable got assigned the proper value? Many tanks for your help, Jo Bernhard Rosenkraenzer wrote: On Sat, 7 Aug 1999, Jo

Re: [newbie] scripting problems

1999-08-07 Thread Patrick Putteman
try : echo $IPADDR and verify if the address is what you expect it to be Patrick Putteman Internet Support Manager Net 7 www.net7.be - Original Message - From: Jo [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, August 07, 1999 10:16 AM Subject: Re: [newbie] scripting problems

Re: [newbie] scripting problems

1999-08-07 Thread Jo
Putteman Internet Support Manager Net 7 www.net7.be - Original Message - From: Jo [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, August 07, 1999 10:16 AM Subject: Re: [newbie] scripting problems OK, PATH=$PATH:. worked. I set a variable in that script: IPADDR=`/sbin

Re: [newbie] scripting problems

1999-08-07 Thread Steve Philp
Putteman Internet Support Manager Net 7 www.net7.be - Original Message - From: Jo [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, August 07, 1999 10:16 AM Subject: Re: [newbie] scripting problems OK, PATH=$PATH:. worked. I set a variable in that script

Re: [newbie] scripting problems

1999-08-07 Thread Jo
: [newbie] scripting problems OK, PATH=$PATH:. worked. I set a variable in that script: IPADDR=`/sbin/ifconfig eth1 | grep "inet addr:" | cut -f2 -d: | cut -f1 -d" "` How can I check if this variable got assigned the proper value? Many

[newbie] scripting problems

1999-08-06 Thread Jo
Hi, Can somebody tell me why this doesn't work? [root@host jd]# pwd /home/jd [root@host jd]# ls -al rc_fi -rwxrwxr-x 1 root root30090 Aug 7 02:47 rc_fi [root@host jd]# rc_fi bash: rc_fi: command not found [root@host jd]# /home/jd/rc_fi bash: /home/jd/rc_fi: No

Re: [newbie] scripting problems

1999-08-06 Thread Bernhard Rosenkraenzer
On Sat, 7 Aug 1999, Jo wrote: [root@host jd]# ls -al rc_fi -rwxrwxr-x 1 root root30090 Aug 7 02:47 rc_fi [root@host jd]# rc_fi bash: rc_fi: command not found The current directory is by default not in the PATH. Either do ./rc_fi, or do export PATH=$PATH:. before running