Execute remote Linux server script from Windows
来源:互联网 发布:好玩的社交软件 编辑:程序博客网 时间:2024/05/16 11:38
Today, I try to execute the shell script from Windows via putty, and the script is storted in remort server Linux.
When I try the below command, it prompt a error message.
Command line:
C:\Software\PuTTY\putty -ssh <username>@<remote server> -pw <password> -m /home/users/remoteCall.sh
Error:
unable to open command file "/home/users/remoteCall.sh"
After refer much info, for the command line:
putty [-pw password] [-m file] user@ip_addr
-m file: the file is storted in the local of Windows, and write the batch shell command in it.
Here I just add a command for call the remote script
/home/users/remoteCall.sh
And now run the command in the cmd of windows:
C:\Software\PuTTY\putty -ssh <username>@<remote server> -pw <password> -m C:\remoteCall
Reference: http://the.earth.li/~sgtatham/putty/0.54/htmldoc/Chapter3.html#3.7
BTW, I remember I have ever tried to call the remort program from Windows by the same command. But now it's so strange for the error.
If anyone know that, please tell me.
- Execute remote Linux server script from Windows
- Remote Desktop from Windows to Linux
- Linux crontab execute Python script
- How To Remote Desktop from windows to Linux
- remote desktop, linux->windows
- Remote Server Administration Tools windows
- put file from local to remote server
- Remote rsyslog server records the logs of python script
- Windows Remote Control Server程序作品+源代码
- windows server 2008 改密码(Remote Desktop)
- Linux Remote Desktop For Controlling Windows XP / Vista / Server 2003 ( rdesktop )
- zabbix remote script
- Refused to execute script from '*' because its MIME type ('text/plain') is not executable
- Refused to execute script from '....js' because its MIME type ('text/html') is not executable...
- Quartz.Net Client Connect/Disconnect from Remote server.
- Remote Desktop -- Access Ubuntu 14.04 from Windows 7
- Remote control linux By vnc-server
- Script do the data transfer from target server to local
- 你的未来你想过?Linux和windows之见! .
- ie6的height bug
- Android中ImageButton自定义按钮的按下效果的代码实现方法
- 猜拳游戏BETA版
- API实现串口通讯
- Execute remote Linux server script from Windows
- 易语言官方站 易语言汉语编程官方站(推荐网址)
- SharePoint run performance
- 位图(.BMP)文件结构
- 程序编程_360安全网址导航 一些不错的编程网址
- VC++实现串口通信的应用程序设计
- 使用qemu + KGDB调试内核
- flex 弹出模式窗口 模式蒙板透明度设置
- Select()系统调用及文件描述符集fd_set的应用