Quantcast
Channel: sshnet Discussions Rss Feed
Viewing all articles
Browse latest Browse all 1729

New Post: ssh.net $Path not returning everything

$
0
0
Hi,

in my code, i have this line that passes the command to the unix box
var cmd = ssh.CreateCommand(string.Format("pwd ; echo $PATH"));
what it returned is
/users01/myname
/usr/bin:/usr/sbin:/sbin

but when I type $PATH through Putty, I get a lot more than just "/usr/bin:/usr/sbin:/sbin" is there anything that I'm missing?

Viewing all articles
Browse latest Browse all 1729

Trending Articles