On Wed, 2006-05-10 at 00:35 +0200, Daniel Schlieper wrote: > However, if I use this as macro in gmfsk > > $( $( echo "599000 +" $(cat /home/daniel/.xlog/test.xlog | wc -l) | bc )) > > ... I fail to get a 599003 or whatever, but some error messages about > "failed to execute child process".
The $()-macro in gMFSK does not provide shell-style redirections, command pipelines or sub-shells. You can basically only do simple "command arg1 arg2 arg3..." (the actual work is done with glib g_spawn_command_line_sync() function). The get the result you want, you need to write an executable shell script that does the above. Something like: #!/bin/sh echo "599000 +" $(cat /home/daniel/.xlog/test.xlog | wc -l) | bc Put that somewhere, make it executable and then call it from gMFSK. -- Tomi Manninen / OH2BNS / KP20JF74 _______________________________________________ Xlog-discussion mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/xlog-discussion
