I have been successfull sending arguments to a shell script from a php
web page but cannot get them to be passed to the system.
How can I have an interface in php and have the user set the date and
submit allowing it to update the system date and time?
Here is a simple php test page:
[code]
<?php
$cmd=070600002008.00 //test date/time
$output = shell_exec('/mnt/flash/date_set.sh '.$cmd);
echo "<pre>$output</pre>";
?>
[/code]
and here is the script date_set.sh:
[code]
var1=$1
echo 'date ' . $var1
[/code]
Thanks in advance,
Scott