I want to call the c program display_output with python generated arguments, however I'm not sure how to formulate the syntax. I tried this
./display_output (python -c "print 'A' * 20")
but I get
bash: syntax error near unexpected token `python' I suppose this goes along with my original question and could help me out with that. The only way I could find to try running python cmd line output as a bash command was by appending | bash to the command. However, is there a better way to do this?
(python -c "print 'ls'") | bash I clearly don't know my way around Bash, but I was certain there was a more appropraite way to do this.