Shell exec doesn't execute
Hi folks,
thought I pop in and ask a little question
so here's the problem:
$query = "scp liesmich.txt [email protected]:/home/samba/$_POST[share]/$dir/";
$result = shell_exec($query);
$query2 = "ln -v -s /backup/data/keto-samba/current/$_POST[share]/$dir /backup/archive/AUTOARCHIVE/$_POST[share]_$dir";
echo $query2;
$result2 = shell_exec($query2);
echo "Result: $result2";
Odd: $result is executed just fine, $result2 simply does nothing. No error, no response, simply zip?
http://www.patrickbaer.com
Professional Photo Retouching Services
pr0gr4mm3r posted this at 19:46 — 18th November 2008.
He has: 1,502 posts
Joined: Sep 2006
Can you show what $query2 is? What happens when you run $query2's output in a terminal manually?
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.