Hello,
I'm trying to use the 'Run Command SSH' component to execute some commands on a linux machine. Specifically I want to be able to execute a python script that is currently located in the linux directory.
I am able to connect properly to the machine e.g.
cd sam;
touch test.txt
(this produces the text file in the correct linux directory sam)
This is the code I am trying to run, it executes ok when run in linux but when I try it using the SSH component to execute the code nothing seems to happen
cd sam; #changes directory to the one of interest
module load python #loads the python module
python test.py #runs the python script
The contents of the test.py file
test_file = open("test.txt","w")
test_file.write("Hello WOrld")
test_file.close()
Is this kind of thing possible using this component?
Can anyone help with this or suggest an alternative?
Thanks,
Sam
I'm trying to use the 'Run Command SSH' component to execute some commands on a linux machine. Specifically I want to be able to execute a python script that is currently located in the linux directory.
I am able to connect properly to the machine e.g.
cd sam;
touch test.txt
(this produces the text file in the correct linux directory sam)
This is the code I am trying to run, it executes ok when run in linux but when I try it using the SSH component to execute the code nothing seems to happen
cd sam; #changes directory to the one of interest
module load python #loads the python module
python test.py #runs the python script
The contents of the test.py file
test_file = open("test.txt","w")
test_file.write("Hello WOrld")
test_file.close()
Is this kind of thing possible using this component?
Can anyone help with this or suggest an alternative?
Thanks,
Sam
