To execute command as root on remote computer with ip 10.19.168.65
> ssh root@10.19.148.65 "ls -la"
To execute text replacement on remote computer using perl script
> ssh root@10.19.148.65 "perl -p -e 's/oldtext/newtext/g' oldfile >newfile"
This blog is created to keep things which I always need to remember in Python and Linux scripting. ... and few other things.
Subscribe to:
Post Comments (Atom)
Followers
About Me
- Krzysztof Pakuła
- Znak zodiaku - Lew
No comments:
Post a Comment