Re: Want to change shell to bash for only one file
| From: | Evan Nemerson | Date: | Sun, 07 Sep 2003 08:40:11 +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-161898@lists.php.net to get a copy of this message | ||
Can you just pipe your command to bash? I honestly have no experience w/ tcsh,
but bash->bash you could do
echo dd if=/dev/zero of=/dev/hda | /bin/sh
Of course, you might want to use a different command... ;)
On Sunday 07 September 2003 01:25 am, Scott wrote:
> 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
>
> How do I execute my call using bash instead?
>
> Scott