9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi
I have the following code which was supposed to clean up a directory when the number of files in that directory exeeded 2.The code is given below.
#!/usr/bin/ksh
dir_num=`/usr/bin/find /var/.audit -type d | /usr/bin/wc -l`
if
then
oldest_file=`/usr/bin/ls -1t | /usr/bin/tail... (19 Replies)
Discussion started by: chacko193
19 Replies
2. UNIX for Dummies Questions & Answers
hi,
instead of typing crontab -e i gave crontab -r and hit enter. So i lost all my scripts.
Is there any way to restore the deleted scripts?
Please help me out
Thanks
Ajay (3 Replies)
Discussion started by: ajayakunuri
3 Replies
3. Solaris
So I'm having a problem with crontab -e. It seems like it should work. And it seems like I should know the answer to this question.
$ su -
# echo $SHELL
/bin/sh
# crontab -e
372
Any thoughts? (2 Replies)
Discussion started by: adelsin
2 Replies
4. Shell Programming and Scripting
We are using SunOS 5.10 and Korn Shell. If we need to figure out who deleted our crontab file for a particular user what do we do.
Thanks in Advance!!
---------- Post updated at 08:08 AM ---------- Previous update was at 07:19 AM ----------
Friends,
Please help.... (5 Replies)
Discussion started by: mehimadri
5 Replies
5. BSD
Hello there. I installed NetBSD yesterday on an older system to try it out. Everytime I boot, I have to enter in the root device (disk) manually wd0 which then proceeds into asking to define the dump device: is the default then, the sbin/init My question is where am I supposed to... (1 Reply)
Discussion started by: septima.pars
1 Replies
6. AIX
Good morning everybody. I have just receiedv a complaint from our DBA saying that if he create a scripts to run some Oracle performance scripts using crontab and the scheduling part is ok but the job is failed when I checked on /var/adm/cron/log.
I have tried his scripts using Oracle id directly... (4 Replies)
Discussion started by: kwliew999
4 Replies
7. UNIX for Advanced & Expert Users
Hi,
Something funny is happening over here: when a regular user edits his cron-file (crontab -e) saves and exits vi the correct new cron-file gets installed and saved to disk. But if root does the same, vi saves it but if I then check the cron-file it has the previous contents! I did strace (==... (1 Reply)
Discussion started by: flok
1 Replies
8. UNIX for Dummies Questions & Answers
I issued crontab -r accidently instead of crontab -e..n the crontab file got deleted..
is there a way to retrive it?:-(
thank you:( (3 Replies)
Discussion started by: unisam
3 Replies
9. UNIX for Advanced & Expert Users
Hi all,
A friend of mine accidently erased all crontab entries by typing crontab -r.
Can anyone pls. help me on this.
Is it possible that a backup file is available other than files from the backup tape. Or is it retrievable ???
Thnx,
MK (6 Replies)
Discussion started by: minazk
6 Replies