Duncan Webb wrote:
> Pirlouwi wrote:
>> What is strange is that the command seems to be launched, but nothing
>> is logged in the two log files:
>> Here is some log from my linux:
>> # ps -ef | grep record
>> croisez  26313  4997  0 20:53 ?        00:00:00 /bin/sh -c 
>> /usr/share/freevo/record.sh E7 2807
>> "/var/cache/freevo/vfs/home/croisez/records/10-08_20:50_Cold_case:_affaires_class_es.avi"
>>
>> croisez  26316 26313  0 20:53 ?        00:00:00 /bin/bash -x
>> /usr/share/freevo/record.sh E7 2807
>> /var/cache/freevo/vfs/home/croisez/records/10-08_20:50_Cold_case:_affaires_class_es.avi
>>
>>
>> # ls -l /tmp/freevo (snipped)
>> -rw-rw-r-- 1 croisez croisez     0 2007-10-08 20:51 recorder_stderr.log
>> -rw-rw-r-- 1 croisez croisez     0 2007-10-08 20:51 recorder_stdout.log
>> -rw-r--r-- 1 root    root     7026 2007-10-08 20:53 recordserver-0.log
>> -rw-rw-r-- 1 croisez croisez  5032 2007-10-08 20:55 recordserver-1000.log
>> -rw-rw-r-- 1 croisez croisez     0 2007-10-08 20:53
>> record.sh-stderr-1000.log
>> -rw-rw-r-- 1 croisez croisez     0 2007-10-08 20:53
>> record.sh-stdout-1000.log
>>
>> I dont understand this behavior, because the record.sh script works
>> very well when launched from a terminal, and it displays some
>> informations that should appear inside the record.sh-stdout-1000.log file.
>> In attachement, I joined my record.sh script.
>> Best Regards,
>> Pirlouwi.
>>
>> 2007/10/8, Pirlouwi <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>:
>>
>>     Hello all, hello Duncan, and thx for your response.
>>
>>     For sure, I do have echo commands inside my bash script, mainly
>>     because it is still in debug stage.
>>     Concerning the passed arguments, I know I give 3 args from inside
>>     freevo, so making an "echo $1 $2 $3" inside my script is enough.
>>     My problem is that I don't see any echo inside
>>     record.sh.stdout.log.  Despite the 2 log files are well created,
>>     the commands inside my record.sh seems not to being executed.
>>     ==> Is it possible that there is a problem/bug between the moment
>>     when freevo creates the 2 log files and the moment when it
>>     executes the VCR_CMD command? <==
>>
> 
> What is your VCR_CMD in local_conf.py?

Have you fixed this?

If you VCR_CMD is something like:

VCR_CMD = ( 'record.sh' ... )
you could change it to either a string
VCR_CMD = 'record.sh %s %s %s' % (...)
or add bash to the first item:
VCR_CMD = ( '/bin/bash', 'record.sh', ... )

This should fix it.

BTW you don't need to convert the frequency as it can be passed as a
argument.

HTH
Duncan


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Freevo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-users

Reply via email to