Hi Clive,

> Can I put those 2 commands into a file and run it just before shutdown
> each time, if so how?
> If I put them into a text file on separate lines and called it
> 'testboot.txt' could I type 'run testboot.txt' in a terminal screen,
> would it work?

If you paste this paragraph of commands to a terminal,

cat >testboot <<\E
#! /bin/bash
(date; ls -ld / /tmp /tmp/.{ICE,X11}-unix) >>ralph.txt
ls -ld / /tmp /tmp/.X11-unix
E
chmod a+x testboot

it will create `testboot' in the current directory and you can run it
with `./testboot'.  You've created a shell script;  a text file of
commands for the shell that's had its mode changed (chmod) to be
executable.

Cheers,
Ralph.


--
Next meeting: Blandford Forum, Tuesday 2010-09-07 20:00
http://dorset.lug.org.uk/ -- Meets, Mailing list, IRC, LinkedIn, ...
How to Report Bugs Effectively:  http://bit.ly/4sACa

Reply via email to