ssh在远程执行多个命令
妙音
posted @ 2014年1月21日 11:18
in linux
, 8861 阅读
执行单个命令
ssh wyq@135.32.9.98 'ps -ef |grep process.py'
在远程主机上执行命令"ps -ef |grep process.py",在本机就可以看到输出.
使用分号分隔,允许一次执行多个命令
ssh wyq@135.32.9.98 'cd ~/src; sh start.sh'
进入到~/src目录,然后执行脚本sh start.sh
2025年3月24日 18:22
I’m impressed, I have to admit. Truly rarely should i encounter a blog that’s both educative and entertaining, and let me tell you, you’ve got hit the nail to the head. Your thought is outstanding; ab muscles a thing that too little people are speaking intelligently about. We are very happy that I came across this at my try to find some thing about it. 바카라사이트
2025年4月03日 00:04
Can I say that of a relief to seek out one who really knows what theyre preaching about on the net. You certainly know how to bring a worry to light and work out it important. Workout . must see this and appreciate this side in the story. I cant think youre less well-liked since you definitely have the gift. binary options signals
2025年4月13日 20:15
Resources this kind of as the one you mentioned here will be incredibly helpful to myself! I will publish a hyperlink to this page on my particular blog. I am sure my site visitors will discover that very beneficial. Trending Strategy
2025年5月23日 19:51
Thank you a lot for giving everyone an extraordinarily special possiblity to check tips from here. 電子煙油
2025年6月08日 01:17
I gotta favorite this internet site it seems handy invaluable aunt baby gifts pink
2025年6月13日 03:40
very good post, i surely really like this site, persist with it funny womens thongs
2025年6月20日 02:11
Thanks for this web site post and discussing your own results together with us. Very well performed! I think a lot of people find it difficult to understand paying attention to several controversial things associated with this topic, but your own results talk for themselves. I think a number of additional takeaways are the importance of following each of the suggestions you presented in this article and being prepared to be ultra distinct about which one could really work for you greatest. Nice job. lingerie for women
2025年6月26日 17:01
you are really a good webmaster. The site loading speed is amazing. It seems that you’re doing any unique trick. Furthermore, The contents are masterpiece. you have performed a great activity in this topic! 減肥產品
2025年7月03日 00:44
Aw, i thought this was a very good post. In thought I must set up writing like that additionally – taking time and actual effort to generate a excellent article… but so what can I say… I procrastinate alot and also by no means often get something carried out. plus size bachelorette underwear
2025年7月06日 20:01
I’m happy I found this weblog, I couldnt uncover any data on this topic matter prior to. I also run a site and if you want to ever serious in a little bit of guest writing for me if feasible really feel free to let me know, i’m always look for people to examine out my site. Please stop by and leave a comment sometime! bridal underwear