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
_______________________________________________
screen-users mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/screen-users