04-13-2020
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi
I have a shell script, it run ok if executed from the path it is located at but doesnot run when the same is tried through cron-job.
can someone help me please.
regards
gaurav shrinivas
Email address removed (8 Replies)
Discussion started by: gauravshrinivas
8 Replies
2. UNIX for Advanced & Expert Users
hi,
I have a shell script which has a sql plus code and unix if else condition.
The file is located at root.I logged in as a root user and i have all permissions. I tried to set up a cron job so that the script need to run every minute.the script is running successfully without any problem. I... (2 Replies)
Discussion started by: sanei05
2 Replies
3. Shell Programming and Scripting
Hello everybody,
I'm trying to run a shell script in crontab file. But anyhow it's not getting executed. Following is the command that I've used in crontab.
30 07 * * * . ./.cronprofile;/om/reports/reportscripts/jitu/prod/prd_pre_to_post.sh
35 11 * * * .... (3 Replies)
Discussion started by: jitu.jk
3 Replies
4. UNIX for Advanced & Expert Users
I'm trying to run "SAR -i 60" under
#/var/spool/cron/crontabs/SYS
0,10,20,30,40,50 0-6 sh -c "/usr/lib/sa/sa1 60 10 &"
55 23 * 0-6 /usr/lib/sa/sa2 -i 900 -A
machine is not running above cron job under "sys" at all.
This suppose to run every minutes and all time in 24 hours. When day... (6 Replies)
Discussion started by: deal732
6 Replies
5. UNIX for Dummies Questions & Answers
hi everyone I'm newbie in this forum hope I can get some help here :)
I have a command in crontab that executed every 1 minute
sometime this command need more than 1 minute to finish
the problem is, the crontab execute this command although it's not finish processing yet and causing the system... (7 Replies)
Discussion started by: 2j4h
7 Replies
6. Shell Programming and Scripting
Hi,
having problem running my cronjob, need the script to run every monday. And the error i'm getting is "No such file or directory", i've tried to change the env to /bin/bash and also /usr/bin/sh but both failed. Need help here. tq
0 0 * * 1 /bin/bash /home/omc/munir/raccli_rnc.sh
Rgds... (3 Replies)
Discussion started by: adawiyah29
3 Replies
7. UNIX for Dummies Questions & Answers
Hi,
I have a .ksh script which updates the database. The script is running fine manually but it is not running through cron.All the file permissions are fine.
The script contents are as below:
#!/usr/bin/ksh
ddate=`date +%Y%m%d`
echo $ddate
nohup sqlplus crm/crm @db_state_sync.sql >>... (3 Replies)
Discussion started by: shivangi
3 Replies
8. Shell Programming and Scripting
I created a script,
size=`du -sm`
size=`echo $size | sed 's/.$//'`
size1='30720'
if
then
{
find /ask/tarballs -type f -name "*.tgz" -mtime +30 -exec ls -l {} \;
find /ask/tarballs -type f -name "*.tgz" -mtime +30 -exec rm -f {} \;
}
else
echo "Directory size doesnt exceed Threshold... (12 Replies)
Discussion started by: shaal89
12 Replies
9. UNIX for Dummies Questions & Answers
Hi,
I am trying to run a cronjob. But while doing so I am getting the following error message :-
can't open yourfile in /var/spool/cron/crontabs directory.
No such file or directory
How can I resolve this issue ?
Please help.
Thanks
Please view this code tag video for... (14 Replies)
Discussion started by: acidburn_007
14 Replies
10. UNIX for Beginners Questions & Answers
I have created a test cronjob using crontab -e that runs a script at /home/cmccabe/cron.sh. I am not sure the script doesn't run though I can call it in terminal. Thank you :).
crontab -e (run script sat at 6:10pm)?
10 18 * * 6 /home/cmccabe/cron.sh
contents of cron.sh
#!/bin/bash... (5 Replies)
Discussion started by: cmccabe
5 Replies
LEARN ABOUT DEBIAN
iv_inotify
iv_inotify(3) ivykis programmer's manual iv_inotify(3)
NAME
IV_INOTIFY_INIT, iv_inotify_register, iv_inotify_unregister, IV_INOTIFY_WATCH_INIT, iv_inotify_watch_register, iv_inotify_watch_unregister
- ivykis inotify(7) wrapper
SYNOPSIS
#include <iv_inotify.h>
struct iv_inotify {
};
void IV_INOTIFY_INIT(struct iv_inotify *inotify);
int iv_inotify_register(struct iv_inotify *inotify);
void iv_inotify_unregister(struct iv_inotify *inotify);
struct iv_inotify_watch {
struct iv_inotify *inotify;
const char *pathname;
uint32_t mask;
void *cookie;
void (*handler)(void *, struct inotify_event *);
};
void IV_INOTIFY_WATCH_INIT(struct iv_inotify_watch *watch);
int iv_inotify_watch_register(struct iv_inotify_watch *watch);
int iv_inotify_watch_unregister(struct iv_inotify_watch *watch);
DESCRIPTION
The iv_inotify_register function registers an iv_inotify instance with the iv_inotify(3) module. The inotify parameter is a pointer to the
iv_inotify structure to be registered.
The iv_inotify_unregister function unregisters an iv_inotify instance from the iv_inotify(3) module. The inotify parameter is a pointer to
the iv_inotify structure to be unregistered.
The iv_inotify_watch_register function adds a watch to the registered iv_inotify instance specified by the ->inotify member.
The iv_inotify_watch_unregister function removes a watch from the iv_inotify instance specified by the ->inotify member.
In the iv_inotify_watch structure used in these functions, the ->pathname and ->mask members correspond to the members of struct ino-
tify_watch as described in inotify(7). ->handler is the event handler called when this watch triggers. The arguments to this handler
function are the pointer stored in the ->cookie member of the iv_inotify_watch structure and a pointer to an inotify_event structure as
described in inotify(7).
RETURN VALUE
iv_inotify_register and iv_inotify_watch_register return zero on success. On error, -1 is returned, and errno is set appropriately.
ERRORS
iv_inotify will return errors returned by inotify_init(3) and inotify_add_watch(3).
SEE ALSO
ivykis(3), inotify(7), inotify_init(3), inotify_add_watch(3), inotify_rm_watch(3)
ivykis 2009-02-07 iv_inotify(3)