Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

I'm trying to run a python script on a remote linux machine accessed by SSH from my local Windows machine. The script contains a loop where for all files in a directory it's going to go to a certain directory on my local windows and run the command line based program. I am not the root user and it's going to be fairly difficult to install anything on the linux machine.

The basic error that I get is that the remote linux machine can't find the C: directory on my windows. I plan on a running a loop for all files in a certain directory.

My Windows is 64bit and the linux machine is 64bit Ubuntu. Any suggestions?

share|improve this question

1 Answer 1

First you have to transfer the script to the linux machine, so before sshing to the remote server scp your script to -lets say- /tmp and then ssh and execute the file that should be in the linux machine's /tmp directory.

share|improve this answer
    
Yes, I have uploaded to the remote machine server. When I run the script, it says 'C:/'(local windows) not found. –  rokman54 Feb 26 at 16:35
    
Then it may help have your script's code posted so that someone can check it (not me I don't know python). –  YoMismo Feb 26 at 16:44

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.