Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Auto say y or n in a shell script
Name: Binh Le Date: October 21, 2002 at 10:19:50 Pacific OS: AIX CPU/Ram: 256
Comment:
Hi all, I'm writing a shell script to execute PGP, then FTP to several FTP site at the same time. Please let me know how to put in the script so that it'll automatic say y and don't promp me for it. Thanks
Name: David Perry Date: October 21, 2002 at 10:23:54 Pacific
Reply:
typing 'prompt' will disable the prompt during an interctive session. Most ftp clients allow for the '-i' flag in a script to disable prompting. Check man ftp for your client.
0
Response Number 2
Name: Binh Le Date: October 21, 2002 at 10:35:01 Pacific
Reply:
David, Thanks for the reply. 'prompt' doesn't work. Please give me another suggestion. Ex: rm -i test.txt (by the way, rm -i is a company standard alias... I'm not suppose to change it... grrrr...)
0
Response Number 3
Name: Binh Le Date: October 21, 2002 at 12:19:29 Pacific
Summary: Hi, I have written a shell script in which I need to connect to sqlplus and execute some query there. In doing so on executing the shell script the query gets executed successfully but is not able to...
Summary: Hi, I need an urgent help with a complex situation. I really appreciate your help! I have a parameter file like this. unix> cat script.par name=david city=portland job=(admin,manager) admin_role=(call...
Summary: I'm trying to write a shell script that acts as a watchdog timer. Basically it needs to look for a file being created by another process and if it finds it, it starts its timing cycle over. If it time...