"chris (fool) mccraw" <[email protected]> writes: > On Mon, Oct 25, 2010 at 11:27, frankhunt <[email protected]> wrote: > >> Does the "at" scheduler use bash or dash? > > mine (ubuntu 10.4 still) uses /bin/sh as documented in the first line of the > at(1) man page. on my system, /bin/sh is linked to dash rather than bash. > i believe there have been other conversations on here about relinking > /bin/sh to bash and how it breaks things, so that's probably not a good fix.
It doesn't (well, didn't, and shouldn't) break anything, but it does make lots of things slower than they need to be. Specifically because: > plus, when run as 'sh', bash behaves like its slower older brother posix > bourne shell--see > http://www.gnu.org/software/bash/manual/html_node/Bash-POSIX-Mode.html. ...this is true, so dash is strictly a subset of the capabilities of bash. [...] > a fine point of at(1) job submission that i just discovered from the same > man page, is that if you submit a file, it is treated as a list of commands, > run via /bin/sh. if you submit from standard in, it will instead just run > the command, which if it is a script will obey your opening shebang line. Actually, at(1) behaves the same way *given the same input* in both modes. You are comparing apples and oranges; these are equivalent: ] echo /path/to/script | at now ] cat /tmp/foo /path/to/script ] at -f /tmp/foo now So are these: ] at -f /path/to/script now ] cat /path/to/script | at now # UUOC: < /path/to/script at now # ;) [...] > i guess another workaround is to submit a file that just has one line that > runs the other script (with the bash-specific shell functions in, starting > with #!/bin/bash), if you really must submit a file rather than using stdin. *nod* That works, of course, because it is actually the same as your stdin example. :) Regards, Daniel -- ✣ Daniel Pittman ✉ [email protected] ☎ +61 401 155 707 ♽ made with 100 percent post-consumer electrons _______________________________________________ PLUG mailing list [email protected] http://lists.pdxlinux.org/mailman/listinfo/plug
