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]>: > > 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.shseems 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? <== > > BTW could you explain me the way python handle the code modification with > respect to its execution cache? I had modified my local_conf.my, and every > time I restarted freevo, it did not took my modif into account. I had been > forced to reboot my linux for these mods to be taken into account. Is there > a command to force the rebuild of that supposed freevo execution cache? > > Pirlouwi. > > > 2007/10/8, Duncan Webb <[EMAIL PROTECTED]>: > > > > > Hi, > > > I want to record the mp2 stream coming from an analog channel on my > > > HVR-1300 > > > board. > > > The faster method for me to get an immediate result is to configure > > the > > > VCR_CMD variable, and to load the generic tv recording plugin. > > > > > > For that, I wrote a script : record.sh taking three arguments: the > > channel > > > (ex: E5), the duration in seconds and the name of the file. > > > Used alone, the record.sh script works, producing an mpg file. > > > > > > But used from within freevo, it doesn't work. > > > Freevo (1.7.3) is looking like it is recording, and two log files > > named " > > > record.sh.stderr.log" and "record.sh.stdout.log" are created but > > remains > > > empty. > > > > Depends if you have any echo commands in your script, it not then they > > will be empty. > > > > > How could I debug this problem? > > > > Easiest way is to see what arguments are being passed into the script, > > some thing like: > > echo $* > > echo "$@" > > at the top of the script will print the arguments. > > > > Then it should be easy. > > > > You can also use as the first line: > > #!/bin/bash -x > > or > > #!/bin/bash -v > > Which will print out the command that are being executed and the script, > > respectively. > > > > Duncan > > > > >
record.sh
Description: Bourne shell script
------------------------------------------------------------------------- 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 Freevo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-users