Process substitution into loop

Grail Dane grail69 at hotmail.com
Fri Jun 10 03:53:15 UTC 2011


Hello
Just wondering, as I can't find by googling, if it is at all possible to do a processsubstitution into a while loop within an upstart script?
Example:
while read -r DEVICEdo    ip link set dev $DEVICE updone< <(ip link | awk '/^[0-9]/ && !/UP/ && gsub(/:/,""){print $2})
When issuing the start command on the script I get:
/proc/self/fd/10: line 6: syntax error near unexpected '<'init: network-interfaces main process (1367) terminated with status 2start: Job failed to start
Would appreciated if someone would identify if i have done something wrong or if this not a supported feature?
Cheersgrail 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/upstart-devel/attachments/20110610/b3be6a58/attachment.html>


More information about the upstart-devel mailing list