I need to run multiple commands in a remote AIX server using
plink.exe
with a batch file.
I currently have the batch file like this:
plink.exe -pw pass user@xxx.xxx.xxx.xxx
cd /home/data/test
rm logs/*%1.*
rm Imp_%1.log
sqlplus user/pass @do_stuff.sql 001 %1 YES
sh do_stuff.sh %1
When i run it the following error is returned:
"A file or directory in the path name does not exist"
When I try the above lines in a command prompt they run without problem.
What is the best way to run all the commands?
–
–
–
–
–
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
site design / logo © 2019 Stack Exchange Inc; user contributions licensed under cc by-sa 3.0
with attribution required.
rev 2019.5.17.33769