Sep 11, 2003 #1 yaway IS-IT--Management Aug 7, 2003 12 US I need help putting a return or a Y in my script so it can auto answer questions from my software. Thank You In Advance
I need help putting a return or a Y in my script so it can auto answer questions from my software. Thank You In Advance
Sep 12, 2003 #2 PHV MIS Nov 8, 2002 53,708 FR and what about something like: Code: echo "Y" | /path/to/yoursoftwareprog Hope This Help PH. Upvote 0 Downvote
and what about something like: Code: echo "Y" | /path/to/yoursoftwareprog Hope This Help PH.
Sep 13, 2003 #3 dbase77 Technical User Apr 23, 2002 591 IE Hi, Try this: cd /program/to/run ./program_name<<eof Y N Y eof That should answer your script question. Enter just use empty line. feroz Upvote 0 Downvote
Hi, Try this: cd /program/to/run ./program_name<<eof Y N Y eof That should answer your script question. Enter just use empty line. feroz
Sep 13, 2003 #4 marsd IS-IT--Management Apr 25, 2001 2,218 US Use expect to automate interactive programs. http://expect.nist.gov Upvote 0 Downvote
Sep 14, 2003 #5 sushveer Technical User Jun 20, 2003 176 US Hi yaway Here is the simplest script to meet your requirement. #!/bin/ksh cd /path command syntax or program.ksh <<EOJ Y EOJ #End of the script OR you CAN GO WITH PHV's input for simplicity... sushveer IBM certified specialist-p-series AIX5L System Administration AIX/SOLARIS/WEBSPHERE-MQ/TIVOLI Administrator Upvote 0 Downvote
Hi yaway Here is the simplest script to meet your requirement. #!/bin/ksh cd /path command syntax or program.ksh <<EOJ Y EOJ #End of the script OR you CAN GO WITH PHV's input for simplicity... sushveer IBM certified specialist-p-series AIX5L System Administration AIX/SOLARIS/WEBSPHERE-MQ/TIVOLI Administrator