[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: strange behavior in script(1)



Carl Mummert wrote:
> I am looking for a way to run an arbitrary command inside a script(1)
> session without having to type the name of the command after I type
> 'script'.    I know about shell redirection so please don't suggest I
> switch to that.
> 
> In the man page, they suggest I try the SHELL environment variable.
> I created a script, chmod'd it, and placed its full path and name in
> the SCRIPT variable... It didn't work.
> 
> However, when I run 'strace -f script'  it DOES work.
> 
> SO...  How do I get it to work without using strace?

There's a patched version of script that can take the command to run as an
argument in the dpkg-mountable debian package.

The behavior you're seeing with strace sounds weird. I can't reproduce it.
If I export a SHELL script runs it.

-- 
see shy jo


Reply to: