Hi, I have one question...
Why pct commands (list, exec, push, etc...) work fine if I run script manually, but don't work if script is lauched by crontab or by another script?
How can I resolve this problem? (All the script are executable).
e.g. "pct list | grep fileserver > /home/user/filetxt" is a part of script "pippo.sh" if I run manually "bash pippo.sh" filetxt contains the result of grep, but if "pippo.sh" is launched by crontab o by another script (e.g. pluto.sh that contains the instruction "bash pippo.sh") filetxt is empty.
Thanks in advance.
p.s. My PVE is 5.4.13
Why pct commands (list, exec, push, etc...) work fine if I run script manually, but don't work if script is lauched by crontab or by another script?
How can I resolve this problem? (All the script are executable).
e.g. "pct list | grep fileserver > /home/user/filetxt" is a part of script "pippo.sh" if I run manually "bash pippo.sh" filetxt contains the result of grep, but if "pippo.sh" is launched by crontab o by another script (e.g. pluto.sh that contains the instruction "bash pippo.sh") filetxt is empty.
Thanks in advance.
p.s. My PVE is 5.4.13