"ssh suse-server 'python -V' > python-version.out" not redirecting
Okay, so I have had this problem on openSUSE, and Debian systems now and I am hoping for a little help. I think it has something to do with Python but I couldn't find a proper Python area here.
I am trying to redirect the output of "ssh suse-server 'python -V'" to a file. It seems that no matter what I try, it always prints to stdout. Here is an example of what I am doing.
Now, I realize that I could just log into the box and do this but I have a lot of systems to do this on. I want to to rap this in a forloop and so I can get a list of what version of python all the boxes have on them... not being able to capture the output of "python -V" is really making this a pain. I hope this is something stupid that I am doing wrong but "ssh suse-server 'cat /etc/issue'" can redirect just fine with >, >>, or tee... so I don't know what I am doing wrong.
Last edited by jim mcnamara; 02-13-2013 at 09:51 PM..
Hello !
I'm creating a CGI which allow to display graph from some data.
The datas looks like :
2020-01-13-00-00,384.00,350.00
2020-01-13-06-00,384.00,350.00
2020-01-13-12-00,384.00,350.00
2020-01-13-18-00,384.00,350.00
2020-01-14-00-00,384.00,350.00... (1 Reply)
Hello everyone,
Since my python knowledge is limimted, I've challenged myself to learn as much as possible to help me with my carrere. I'm currently trying to convert a shell script to python, just to give myself a task. There is one section of the script that I'm having issues converting and... (2 Replies)
Hi All,
I need to get the version of python installed and store it in a variable for later use. Whereas it is printing on the console instead of storing to variable. I am able to store output of ls command in a variable. Please check the below code :
root@myhost:/volumes/srini# cat... (4 Replies)
Please can you help me understand the significance of providing arguments under sh -s in
> ssh -qtt ${user}@${host} "sh -s "${version}"" < test.sh (4 Replies)
I am trying to import the "xmlrpclib" Module from Activepython 2.5 in einer older Python 2.2.
Already achived this on a SUSE Linux server, but I am now required to do it on a AIX server.
Resolved the first few error messages by copying files from Activepython to Python but
I can't get the... (0 Replies)
Greetings!
I am trying to perform a passwordless SSH login from a HPUX 11.31 client to a HPUX 11.31 server. Whenever I do a "ssh -l root serverA" from the client, I am prompted for a password. Giving the password, I am able to successfully login. However I am trying to accomplish a... (9 Replies)
I did successful yestday as Porter's doc:
1. Create private/pub key on AIX:
$ssh-keygen -t identity
2. Get my private key from the AIX server, found in $HOME/.ssh/identity
Put that on Windows box.
I use WinSCP to transfer private key from AIX to Windows
3. Run puttygen.exe and... (8 Replies)