3

Shell Scripting Stop/Start Application

view full story
linux-howto

http://www.unix.com – I did a search of these forums but couldnt find a suitable resolution. I am attempting to script a stop and start of an application on AIX. Such as: Quote: #!/bin/sh sh stopServer.sh server1 However it has authentication where username and password prompts will appear after running the above command requiring input from a user. I want to automate the input as though a user was entering it. I thought echo would work although very rudimentary using echo "password" would pass this value as the output required. Any advice (HowTos)