Art Alexion on 22 Jun 2009 11:26:49 -0700 |
On Monday 22 June 2009 11:08:40 am Isaac Bennetch wrote: > IIRC, stringing > commands together with && only executes the second command if the > first command exits successfully. || (two pipes) will execute the > second command only if the first command errors (well, returns a > non-zero status). > > Try following: > false && echo "some text here" > true && echo "some text here" > false || echo "some text here" > true || echo "some text here" > > If you want to run safe-update regardless of the status of the update, try: > sudo aptitude update; sudo aptitude safe-upgrade I didn't know this before. Thanks. I never knew about ":" either. Attachment:
signature.asc ___________________________________________________________________________ Philadelphia Linux Users Group -- http://www.phillylinux.org Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug
|
|