Re: How to write file containing shell script?
| From: | Jason Wong | Date: | Thu, 28 Mar 2002 07:08:43 +0000 |
| Subject: | Re: How to write file containing shell script? | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-90484@lists.php.net to get a copy of this message | ||
On Thursday 28 March 2002 15:03, Dalton Hunter wrote:
> them in Textpad afterward. For example the script contains ...
>
> <?php
>
> // BEGIN PHP SCRIPT THAT GENERATES SHELL SCRIPT
>
> $sbackup = "#!/bin/sh
Do you actually terminate each line of your shell script with \n?
ie shouldn't that be:
$sbackup = "#!/bin/sh\n ...
??
> sh: ./shell_script: No such file or directory
Have you tried
cat shell_script
to see whether it 'looks' ok?
--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
/*
Of course a platonic relationship is possible -- but only between
husband and wife.
*/