Re: Want to change shell to bash for only one file

From: Date: Sun, 07 Sep 2003 15:04:04 +0000
Subject: Re: Want to change shell to bash for only one file
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-161911@lists.php.net to get a copy of this message
* Thus wrote Scott (sahuggins@clearidea.net): > I am trying to temporarily change from tcsh to bash. I need to use bash for > a particular command that I am doing a shell_exec on. Currently: > _SERVER["SHELL"] = tcsh You can try put_env('SHELL=/bin/bash'); http://php.net/put_env or if you making sure a script is ran under the shell you can always call your script like: /bin/bash scriptname and of course you can make it so you don't have to worry about your environment the file executible and add this to the first line: #!/bin/bash Curt -- "I used to think I was indecisive, but now I'm not so sure."

« previous php.general (#161911) next »