I am trying to string together several commands to run from one place (it is actually a .desktop file but it could equally well be a script if it has to be) and I want the commands to run irrespective
of any output that is printed by stdout/stderr. At the moment the sequence is failing to run because of spurious complaints from the shell about non-existent errors (these are complete garbage I hasten to add - the program runs perfectly well despite whatever the command line is complaining about).
So far I have tried double ampersand, single ampersand, semicolon, comma, double pipe, and nothing at all, to separate the commands, but nothing works, the sequence always stops when one of the programs senses an error.
So what I want to achieve is similar to
- Code: Select all
apt-get update && apt-get dist-upgrade
Except that I don't want the second command to be dependent on any
conditions from the first command, I just want the next command to run irrespective of what has gone on before. Neither do I want any output redirected to anywhere else.
It should be simple but I can't find it.
Fujitsu Lifebook AH532 Laptop. Intel i5 processor, 6Gb ram, Intel HD3000 graphics, Intel Audio/wifi. Realtek RTL8111/8168B Ethernet.Ubuntu12.10 (Unity), Mint14 (Cinnamon), Manjaro (Xfce).