Hi I use runCommand to execute some basic ksh script without problems. (rm..).
But i can't run command with impdp.
var cmd = ssh.RunCommand("ssh oracle@192.168.1.31;cd /usr/oracle/app/admin/db01/dpdump/; impdp1.ksh>tata.txt"); I m able to run manually impdp1.ksh. I m run out of idea ? please any help
regards
Comments: ** Comment from web user: da_rinkes **
But i can't run command with impdp.
var cmd = ssh.RunCommand("ssh oracle@192.168.1.31;cd /usr/oracle/app/admin/db01/dpdump/; impdp1.ksh>tata.txt"); I m able to run manually impdp1.ksh. I m run out of idea ? please any help
regards
Comments: ** Comment from web user: da_rinkes **
And your command seems a little bit weird.
This command won't work:
- The ssh will block RunCommand forever.
- you are missing a './' in front of impdp1.ksh
- use '&&' instead of ';' to connect commands. This will ensure the cd command worked before trying to
execute the impdp1.ksh
I'm guessing what you wanted is: ssh oracle@192.168.1.31 'cd /usr/oracle/app/admin/db01/dpdump/ && ./impdp1.ksh'