Try replacing your subprocess to this
subprocess.Popen("7z a -t7z Backup-01-04-18.7z *", cwd="/home/dvdsrv/stores")
Command in Bash not working in python
|
|
Messages In This Thread |
Command in Bash not working in python - by pynoob - Jan-05-2018, 04:29 PM
RE: Command in Bash not working in python - by hshivaraj - Jan-05-2018, 04:53 PM
RE: Command in Bash not working in python - by pynoob - Jan-05-2018, 05:08 PM
RE: Command in Bash not working in python - by hshivaraj - Jan-05-2018, 05:33 PM
RE: Command in Bash not working in python - by snippsat - Jan-05-2018, 05:44 PM
RE: Command in Bash not working in python - by pynoob - Jan-05-2018, 06:28 PM
|