[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Redirecting output on screen command line
From: |
Bruno Cudini |
Subject: |
Re: Redirecting output on screen command line |
Date: |
Thu, 28 Jul 2011 16:49:51 +0200 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
On Mon, Jul 25, 2011 at 12:25:30PM -0400, Seth Seeger wrote:
> Hello!
>
> I'm trying to do something like this, where I redirect the output of
> my script into a file:
>
> screen -d -m php -f long-runnig-script.php > /tmp/mylogfile.txt
>
> But of course, the ">" is not passed into screen. I've tried
> escaping the ">" in all the different ways I could think of, but
> nothing has worked.
>
> Is there a way to do this?
Hello,
I guess using sh -c '...' should do the trick:
screen -d -m sh -c 'php -f long-runnig-script.php > /tmp/mylogfile.txt'
--
Bruno Cudini