Re: [PHP] How to write file containing shell script?

2002-03-27 Thread Dalton Hunter
"Miguel Cruz" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Thu, 28 Mar 2002, Miguel Cruz wrote: > > Right. I think the "No such file or directory" message is because it's > > failing to find an interpreter called "/bin/bash\r". > > Sorry, I mean "/bin/sh\r

Re: [PHP] How to write file containing shell script?

2002-03-27 Thread Miguel Cruz
On Thu, 28 Mar 2002, Miguel Cruz wrote: > Right. I think the "No such file or directory" message is because it's > failing to find an interpreter called "/bin/bash\r". Sorry, I mean "/bin/sh\r". Habit. miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www

Re: [PHP] How to write file containing shell script?

2002-03-27 Thread Jason Wong
On Thursday 28 March 2002 15:03, Dalton Hunter wrote: > them in Textpad afterward. For example the script contains ... > > > // 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: $sback

Re: [PHP] How to write file containing shell script?

2002-03-27 Thread Miguel Cruz
On Wed, 27 Mar 2002, Dalton Hunter wrote: > "Miguel Cruz" <[EMAIL PROTECTED]> wrote: >> Make sure you use unix-style line endings (just \n and no \r). > > Hi, thanks for your reply. I should have been a little clearer. The file is > created as a result of a PHP script not in TextPad. I am only co

Re: [PHP] How to write file containing shell script?

2002-03-27 Thread Dalton Hunter
"Miguel Cruz" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Wed, 27 Mar 2002, Dalton Hunter wrote: > > Hi, I am trying to write a file that contains a shell script. The file > > writes to the server but when I try to execute it it fails with a > > command n

Re: [PHP] How to write file containing shell script?

2002-03-27 Thread Miguel Cruz
On Wed, 27 Mar 2002, Dalton Hunter wrote: > Hi, I am trying to write a file that contains a shell script. The file > writes to the server but when I try to execute it it fails with a > command not found error. But if I copy and paste the files contents into > a new text file using Textpad on my PC

[PHP] How to write file containing shell script?

2002-03-27 Thread Dalton Hunter
Hi, I am trying to write a file that contains a shell script. The file writes to the server but when I try to execute it it fails with a command not found error. But if I copy and paste the files contents into a new text file using Textpad on my PC and upload it to the same directory it works?! It