[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cobalt-users] shell tools OT
- Subject: RE: [cobalt-users] shell tools OT
- From: "Overall, Matthew (MDH UK)" <Matthew.Overall@xxxxxxxxxxxxxx>
- Date: Tue Oct 15 10:02:01 2002
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
Talking of Shell stuff. I am having a real problem. I have a shell script...
#!/bin/sh
cp index.html index2.html
And I want to invoke this from a php script
<? Exec( "./copy" ); ?>
However, 'httpd' does not have permission to create a file in the web directory, so I need to run the shell script as 'nobody'
No matter how hard I try using chmod u+s 'script' etc etc I just cannot get that script to create index2.html when called from php.
Does anyone know where I am going wrong - I think I must be making a dumb amateur mistake somewhere!!!
Many thanks,
Matty
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this mail in error please notify
the system manager.
This footnote also confirms that this email message has been virus
checked.
**********************************************************************