Compatible Support Forums: ssh bash file problem

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

ssh bash file problem

#1 User is offline   fps.dyl 

  • stranger
  • Group: Members
  • Posts: 22
  • Joined: 08-January 07

Posted 15 June 2007 - 11:09 AM

Hi!

im having a small problem. im running linux , and we have this server running windows,
now on windows there is a batch file called myfile.bat that does some stuff,,,
now i want to write a bash script that ssh into my windows pc and automaticaly runs the bat file....

i googled it and i found the following example :
ssh User@Host "command 1; command 2; command3"

so i ran :

ssh myusername@myhost "c:\ftp\admin\myfile.bat;"

and it doesnt work....

but to test it i ran :

ssh myusername@myhost "echo mytest > mytest.txt;"

and that works perfectely it creates the file and everything...
please can someone help me with this!!!!

thanks in advance!

0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users