Quantcast
Viewing all articles
Browse latest Browse all 1729

New Post: ksh not found when executing command using the sshCommand.Execute

Hello,
I'll appreciate your help with the following issue.
i am trying to execute command using the following syntax :

SshCommand command = cSSH.CreateCommand("isql -Uun -Ppass -i/Directory1/Directory2/Directory3/Directory4/filename.sql -o/Directory1/Directory2/Directory3/Directory4/log/filename.log");

command.Execute();

when running it from shell the command success but when I run it using the ssh i get "ksh isql : not found"

anyone knows how can I overcome this issue?

thank you in advance!

Viewing all articles
Browse latest Browse all 1729

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>