PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Shell-Programme



Zahnbürste
13.03.05, 14:58
Sers,

kennt wer ein gutes, aber auch kurzes Skript über Shell-Programme.
Was macht folgendes Shell code fragment?

#!/bin/sh

at 01:00 < /bin/rm -f $HOME/.bash_history
EOF

Was macht:
at -l

Wird um ein Uhr die Bash-History in meinem Homeverzeichnis gelöscht?

Vielen Dank für Hilfe im Vorraus
Zahnbürste

Freekazonid
13.03.05, 15:04
#!/bin/sh

at 01:00 < /bin/rm -f $HOME/.bash_history
EOF


man at:


DESCRIPTION
The at utility shall read commands from standard input and group them
together as an at-job, to be executed at a later time.


=>



Wird um ein Uhr die Bash-History in meinem Homeverzeichnis gelöscht?

genau





at -l



-l (The letter ell.) Report all jobs scheduled for the invoking
user if no at_job_id operands are specified. If at_job_ids are
specified, report only information for these jobs. The output
shall be written to standard output.