Bug #1205
problem issuing post-processor command
0%
Description
Post-processor command doesn't work. I tried under Ubuntu 12.04 both version 2.12 and 3.0.
I test many commands, even simple: /bin/date > /home/user/file.txt - nothing happens.
According to manual this should work.
(I usually break-up recording to see result of post-pocessor command without waiting)
Maciej Malawski
(mclusky)
History
Updated by Andy Brown about 12 years ago
- Assignee set to Andy Brown
Bug appears to be with argv's being passed to the spawn.c
The command itself is executed, so a single/all-contained command works, however arguments aren't passed to it so I suspect the argv passing code.
Will check the spawn code asap to see if I can resolve.
Updated by Andy Brown about 12 years ago
It appears to be down to how execve handles command redirection.
For example, if you put in:
/tmp/test_cmd.sh %S %b
This will correctly pass arguments to the command. Using the test of
/bin/date > /home/user/file.txt
Is erroneous as this will fail due to the command redirection taking place as an argument.
So it appears to be working correctly, just maybe the documentation needs a slight tweak to warn about redirection of output.
Updated by Adam Sutton about 12 years ago
- Status changed from New to Rejected
Yes, sorry I was clearly not paying enough attention. You cannot redirect the output of the scripts.
If you need to do that would would have to handle it within your script, this is easily achieved for most scripting languages.
Going to close as this is not a bug.