redirection problems..
Posted: Sun 24 Feb 2013, 09:13
SOLVED: see last post
....
I tried Google.. now here.. I have this code, which works for me in bash-4.2.0:
The above runs VLC, outputting everything to $LOGFILE, and that is all run in the background, as the script it's inside then moves on to do stuff with the cvlc process..
Anyway... The code does not work (reportedly) in bash 3 .. apparently this does (a space before >>):
If I change &>> to just >>, then everything works fine, except the actual redirection that I want!
..
The code is loaded from within a func.. That func is not loaded as a background process.. But often that func is itself loaded inside another func which IS run as a background process ... As is, it all works for me..
I tried a few things, until it got messy and things got worse.. Any guidance on what's going on here would be greatly appreciated..
The relevant post is here, and originally reported a posts back from there: http://www.murga-linux.com/puppy/viewto ... 378#687378
....
I tried Google.. now here.. I have this code, which works for me in bash-4.2.0:
Code: Select all
cvlc "$FILE" vlc://quit &>>"$LOGFILE" &
Anyway... The code does not work (reportedly) in bash 3 .. apparently this does (a space before >>):
Code: Select all
cvlc "$FILE" vlc://quit & >>"$LOGFILE" &
..
The code is loaded from within a func.. That func is not loaded as a background process.. But often that func is itself loaded inside another func which IS run as a background process ... As is, it all works for me..
I tried a few things, until it got messy and things got worse.. Any guidance on what's going on here would be greatly appreciated..
The relevant post is here, and originally reported a posts back from there: http://www.murga-linux.com/puppy/viewto ... 378#687378