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

New Post: help with execute command with quotes escaping

$
0
0
Hello,
I try to run the command date -s "Tue Feb 10 13:15:12 UTC 2015"
in code:
ShellStream..WriteLine("date –s \"" + date + "\""); // when date contain "Tue Feb 10 13:15:12 UTC 2015"
i keep getting date extra operand (original message):
date: extra operand `Tue Feb 10 14:21:01 UTC 2015'

should i need different escaping?
thank you
Lior.

Viewing all articles
Browse latest Browse all 1729

Trending Articles