[Linux-disciples] write to file from shell script

Adam Rosi-Kessel adam at rosi-kessel.org
Tue Nov 15 22:17:12 EST 2011


Is gondor another shell script? I don't see why you would need to do 
that but if the shoe fits, buy another shoe.

On 11/15/2011 10:15 PM, Jamie Forrest wrote:
> I seem to have solved it as follows:
>
> #!/bin/bash
>
> logfile=/Users/jforrest/Projects/django-cnsltme/cnsltme/backup/`date
> +%F`_dump.sql
> exec gondor sqldump primary>  $logfile
>
> Is it correct?
>
>
> On Tue, Nov 15, 2011 at 10:08 PM, Adam Rosi-Kessel<adam at rosi-kessel.org>  wrote:
>> On 11/15/2011 10:01 PM, Jamie Forrest wrote:
>>> I'm running it from a subdirectory in my home dir. I tried changing it
>>> to a full path and still no dice. And yes the output from gondor
>>> sqldump goes to screen normally.
>> Add 2>&1 ?
>>
>
>




More information about the Linux-disciples mailing list