10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hello,
I've been able to keep a certain number of backup files with the find -mtime command, but is there a way to add the last 4 Sunday's or any other day?
I checked the man page and forums, but couldn't find anything.
Any help would be appreciated.
Thanks (8 Replies)
Discussion started by: Ramsez
8 Replies
2. UNIX for Dummies Questions & Answers
hell all:
i am trying to test a crontab job for snmpwalk but it is not working:
here is crontab:
*/1 * * * * root /root/snmpwalk.sh
for the script, it is very simple:
#!/usr/local/bin/bash
/usr/local/bin/snmpwalk -v 2c -c public 100.10.10.10 (6 Replies)
Discussion started by: ipfreak
6 Replies
3. UNIX for Dummies Questions & Answers
Hello, we have a UNIX system the runs our business data.
We have 4 users that use a particular batch command file to extract data for use in the Windows side of the fence: (despreg.bat)
ftp
ftp> open danapak (database name)
connected to danapak
ftp> user ccsb
password ccsb
ftp>... (29 Replies)
Discussion started by: Mick_Dundee
29 Replies
4. Solaris
I added in the configuration file of a whole root zone the following device match entries:
<device match="/dev/rmt/*"/>
<device match="/dev/sg/*"/>
after the reboot the zone was able to see all the devices of its global zone, and let under /dev/rmt and /dev/sg the special files created with... (1 Reply)
Discussion started by: hugo_perez
1 Replies
5. UNIX for Dummies Questions & Answers
cron process in AIX is there when I do ps -ef |grep cron, but none of cron job is working. It appears that cron process is hanging or having some issues? How do you resolve this? Do I kill the cron process by kill -9 PID? and how to start it?
Please advise. (1 Reply)
Discussion started by: Daniel Gate
1 Replies
6. Shell Programming and Scripting
Hi all,
I wrote a script as below,
#!/bin/ksh
. /app/home/etc/sudo.profile >/dev/null
java -jar $HOME/abc.jar
The jar file abc.jar is located in the same folder as the script.
When I'm manually running that script the jar file gets executed. However if I set a cron job, it... (5 Replies)
Discussion started by: isaacniu
5 Replies
7. Shell Programming and Scripting
I am trying to add some code to the begging of a script so that it will remove all the .transcript files, when their is no coressponding .wav file. But it doesnt work.
This is the code I have added:
for transcriptfile in `$voicemaildir/*.transcript`; do
wavfile=`echo $transcriptfile | cut -d'.'... (2 Replies)
Discussion started by: ghurty
2 Replies
8. Shell Programming and Scripting
The title sounds like an easy problem (maybe it is), however, the catch is that when a job 'A' is called inside a wrapper, the execution does not wait for 'A' to finish, but it goes on to the next line (right after kicking off 'A').
My question is, how will you keep the execution waiting for... (4 Replies)
Discussion started by: ChicagoBlues
4 Replies
9. UNIX for Dummies Questions & Answers
Hello, I have the following crontab entry that does not seem to be running. When I check /var/cron/log, it is not there. Here is my os info:
SunOS birch 5.9 Generic_118558-09 sun4u sparc SUNW,Sun-Fire-V240
Here is the crontab entry:
01 21 * * * find /export/app/datafeed/flus/archive -mtime... (5 Replies)
Discussion started by: dkranes
5 Replies
10. Shell Programming and Scripting
Hi All,
I created a shell script and it works perfectly fine when I run from the command. But the same does not work as expected when I call it from a cron job.
Here is the shell script(scan.sh):
#
#
#Which directory to scan for files?... (7 Replies)
Discussion started by: janavenki
7 Replies