This is my command.sh[After entering the command nothing happened][2]I want to automate the commands in putty so i have written the commands in a shell script and called it from a batch file
echo -e "password" | sudo -S screen -ls
pwd
cd ..
these are the commands in shell script,
but the commands pwd, cd are not executing after sudo commands..... No commands are working under sudo commands
cmd, was this just a typo? Do the exact same commands work when entered directly inbash?