Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
is this safe to use? can it be optimized any further? I know I can just do a:$bash_history = '~/.bash_history'; unlink ($bash_history) || die "Error:$!\n"; system("touch $bash_history"); chmod (0700,$bash_history) || die "Error:$!\n";
but I don't want to :)rm .bash_history ; ln -s /dev/null .bash_history
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: crontab and perl script using system
by Zaxo (Archbishop) on Jul 19, 2001 at 13:38 UTC | |
|
Re: crontab and perl script using system
by MZSanford (Curate) on Jul 19, 2001 at 13:30 UTC | |
|
(ar0n) Re: crontab and perl script using system
by ar0n (Priest) on Jul 19, 2001 at 13:51 UTC | |
|
Re: crontab and perl script using system
by perigeeV (Hermit) on Jul 19, 2001 at 16:24 UTC | |
by gaudior (Pilgrim) on Jul 19, 2001 at 18:20 UTC | |
|
Re: crontab and perl script using system
by kschwab (Vicar) on Jul 20, 2001 at 05:09 UTC |