Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Long command with characters not working in Python on Oracle Linux 7
Post: RE: Long command with characters not working in Py...

shlex.split()is not the function I have written. I removed that function from my script. This is how the line looks now. cmd = list2cmdline("find /OVS -wholename '*VirtualMachines/*/vm.cfg' -exec gre...
iaas_infra General Coding Help 10 6,320 Jul-19-2019, 03:59 PM
    Thread: Long command with characters not working in Python on Oracle Linux 7
Post: RE: Long command with characters not working in Py...

Guys any pointers on this?
iaas_infra General Coding Help 10 6,320 Jul-19-2019, 02:59 AM
    Thread: Long command with characters not working in Python on Oracle Linux 7
Post: RE: Long command with characters not working in Py...

Below is the script I have with the command you suggested. Output:import paramiko from subprocess import list2cmdline import shlex client=paramiko.SSHClient() client.set_missing_host_key_policy(param...
iaas_infra General Coding Help 10 6,320 Jul-18-2019, 03:48 PM
    Thread: Long command with characters not working in Python on Oracle Linux 7
Post: RE: Long command with characters not working in Py...

thanks I tried to change command as you suggested. When I run python I do not get any errors. But the output is not shown. printing the command via python I see that the command is as follows: find...
iaas_infra General Coding Help 10 6,320 Jul-18-2019, 03:19 AM
    Thread: Long command with characters not working in Python on Oracle Linux 7
Post: RE: Long command with characters not working in Py...

I removed all the double quotes except beginning one and ending one. I still see the syntax error as follows: [root@tboyella-python tboyella-scripts]# python ./test.py File "./test.py", line 9 ...
iaas_infra General Coding Help 10 6,320 Jul-17-2019, 11:38 PM
    Thread: Long command with characters not working in Python on Oracle Linux 7
Post: Long command with characters not working in Python...

I have below python script which connects to a host, runs a command and prints the output. This script is working fine and printing the output of df command. But when I replace the df command (insid...
iaas_infra General Coding Help 10 6,320 Jul-17-2019, 06:43 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020