Dear Friends,
If I want to execute some commands just after the
system boots up ,I know, I can put those commands in
the file "/etc/rc.d/rc.local" . But can I perform an
ftp command "get" in this manner ? I tried this in my
Redhat 9.0 machine. But I cannot succeed.
My "/etc/rc.d/rc.local" looks like this.
1 #!/bin/sh
2 #
3 # This script will be executed *after* all the
other init scripts.
4 # You can put your own initialization stuff in
here if you don't
5 # want to do the full Sys V style init stuff.
6
7 touch /var/lock/subsys/local
8 cd /root
9 ftp 151.8.28.28 << **
10 get pgm
11 bye
12 **
I have configured "/root/.netrc" file in this manner
1 machine 151.8.28.28
2 login ftpuser
3 password asd
If I give other commands before or after the "ftp"
command in the file "/etc/rc.d/rc.local" they will
work. But the ftp script does not work.
What is the problem ?
Hoping for a solution,
Ciju Rajan K
__________________________________
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help