Try first with small things like shell scripts you write which would tell you where the thing is running (e.g. by using hostname). Keep in mind that what would happen will most importantly depend on the shell. For example, if you use "sudo" you know that using wildcards is tricky, because your username you sudo from may not have reading permissions to expand them, so will pass them literally to the command, rather than expanding them as root.
Bottom line, good to be afraid. Understand shell syntax, but don't trust and instead verify what happens with innocuous things before opening the firehose :-) On Mon, Jan 23, 2023 at 9:31 PM Chandler <ad...@genome.arizona.edu> wrote: > > Williams, Gareth (IM&T, Black Mountain) wrote on 1/23/23 7:55 PM: > > Be brave and experiment! How far wrong can you go? > Hmm I do love breaking and re-fixing things... > > > srun bash -c "cmd1 infile1 | cmd2 opt2 arg2 | cmd3 opt3 arg3 -- > outfile > > && cmd4 opt4 arg4" > Yes this will work! Thanks! >