Have you tried putting all your commands in a file and running the file itself?
Suraj Sankaran "This e-mail message may contain confidential or proprietary information. Do not use it if you are not the original intended recipient. As e-mail may be altered electronically, Paladion Networks cannot guarantee the integrity of this communication. Before opening any attachments please recheck them for viruses and defects." -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of ciju rajan Sent: Saturday, July 24, 2004 12:45 PM To: [EMAIL PROTECTED] Subject: [LIH]problem with /etc/rc.d/rc.local 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 ------------------------------------------------------- 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
