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

New Post: Single command containing semi-colon

$
0
0
Hi, I'm trying to run a command containing semi-colons thanks to the SshClient.RunCommand() method but the command doesn't seem to be executed.

The command does work when I'm using it directly.

I was wondering if the semi-colons wouldn't be the problem since they are used to seperate commands otherwise. I guess the problem would be the same for any multiline commands.

If you have any idea on how to bypass this issue, feel free to contribute.

Fyi, the command is:
for dir in `find . -type d -name '*123*'`; do mv "$dir" "${dir/123/321}"; done

Viewing all articles
Browse latest Browse all 1729

Trending Articles



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