dimanche 31 août 2014

Using wget with shell_exec and at command?


Vote count:

0




I've been struggling with shell_exec PHP function and at linux command for 2 days. To make it short, this works:



shell_exec('/usr/bin/at 09:32 <<EOF
touch /var/www/website/hello.txt
EOF'
);


this doesn't:



shell_exec('/usr/bin/at 09:32 <<EOF
wget -O - -q -t 1 "http://ift.tt/1wVjpFp" >/dev/null 2>&1
EOF'

);


Why ?


(note: the code above does work in console)


Thanks in advance.



asked 1 min ago







Using wget with shell_exec and at command?

Aucun commentaire:

Enregistrer un commentaire