3 ms·
> Would you know how I could detect that input is cat'ed into the script ? ($ cat snippet.c | runc -i). So that I can suppress 'Type your code then CTRL+D'. St
by Gaelan 6y ago
> Would you know how I could detect that input is cat'ed into the script ? ($ cat snippet.c | runc -i). So that I can suppress 'Type your code then CTRL+D'.
Stack Overflow suggests http://stackoverflow.com/questions/10022323/ddg#10022396 http://stackoverflow.com/questions/10022323/ddg#10022396
- alcover 6y agoThank you so much, this is neat.