Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.os.linux.misc > #89860
| From | pH <wNOSPAMp@gmail.org> |
|---|---|
| Newsgroups | comp.os.linux.misc |
| Subject | Re: Need help with shell script. |
| Date | 2026-08-10 19:27 +0000 |
| Organization | A noiseless patient Spider |
| Message-ID | <115d8mk$3d7jb$3@dont-email.me> (permalink) |
| References | (1 earlier) <eli$2608092059@qaz.wtf> <2e-dnb0tLsiBz-T3nZ2dnZfqnPednZ2d@giganews.com> <115bm5q$2s4o9$2@dont-email.me> <115cbn8$323nr$2@dont-email.me> <115cdc7$c8c$1@inn.news.oldproto.ru> |
On 2026-08-10, Stanislav N. aka pztrn <pztrn@oldproto.invalid> wrote: > 10.08.2026 16:12, The Natural Philosopher wrote: >> The behaviour you describe is hauntingly familiar, but I cannot recall why... > > On my systems (arch and debian) that behavior was observed only if: > > 1. Script has no executable bit set. > 2. Commands in script returns anything other than 0 > > Probably it's #2 and I propose to change script into this: > > #!/bin/bash, > mv ~/Desktop/*JPG ~/Desktop/Beckys_stuff/ || true > mv ~/Desktop/*PDF ~/Desktop/Beckys_stuff/ || true > > Or even better: > > #!/bin/bash, > > set +e > > mv ~/Desktop/*JPG ~/Desktop/Beckys_stuff/ > mv ~/Desktop/*PDF ~/Desktop/Beckys_stuff/ > > set -e > > Thanks for the response. Even though I've got the thing working "well enough", I think I will give this a try and see if the "launcher" complains. (and you made me read up on "set"...always a good thing to learn a bit) pH
Back to comp.os.linux.misc | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Need help with shell script. pH <wNOSPAMp@gmail.org> - 2026-08-09 23:32 +0000
Re: Need help with shell script. Eli the Bearded <*@eli.users.panix.com> - 2026-08-10 01:01 +0000
Re: Need help with shell script. c186282 <c186282@nnada.net> - 2026-08-10 00:23 -0400
Re: Need help with shell script. pH <wNOSPAMp@gmail.org> - 2026-08-10 05:04 +0000
Re: Need help with shell script. rbowman <bowman@montana.com> - 2026-08-10 05:44 +0000
Re: Need help with shell script. pH <wNOSPAMp@gmail.org> - 2026-08-10 19:22 +0000
Re: Need help with shell script. The Natural Philosopher <tnp@invalid.invalid> - 2026-08-10 12:12 +0100
Re: Need help with shell script. vallor <vallor@vallor.earth> - 2026-08-10 11:38 +0000
Re: Need help with shell script. "Stanislav N. aka pztrn" <pztrn@oldproto.invalid> - 2026-08-10 16:40 +0500
Re: Need help with shell script. pH <wNOSPAMp@gmail.org> - 2026-08-10 19:27 +0000
Re: Need help with shell script. Lawrence D’Oliveiro <ldo@nz.invalid> - 2026-08-10 23:58 +0000
Re: Need help with shell script. Farley Flud <ff@gnulinux.rocks> - 2026-08-11 00:19 +0000
Re: Need help with shell script. "Stanislav N. aka pztrn" <pztrn@oldproto.invalid> - 2026-08-10 16:31 +0500
Re: Need help with shell script. c186282 <c186282@nnada.net> - 2026-08-10 21:14 -0400
Re: Need help with shell script. pH <wNOSPAMp@gmail.org> - 2026-08-10 04:59 +0000
Re: Need help with shell script. rbowman <bowman@montana.com> - 2026-08-10 05:41 +0000
Re: Need help with shell script. pH <wNOSPAMp@gmail.org> - 2026-08-10 19:17 +0000
Re: Need help with shell script. gazelle@shell.xmission.com (Kenny McCormack) - 2026-08-10 20:08 +0000
Re: Need help with shell script. Lawrence D’Oliveiro <ldo@nz.invalid> - 2026-08-10 01:36 +0000
csiph-web