469,623 Members | 1,467 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,623 developers. It's quick & easy.

Whats wrong in this Script ???

PATH="/clocal/mqbrkrs/user/mqsiadm/sanjay/"
MAIL_RECIPIENTS="rb903@dcx.com"
Subject="File accessed in last minutes:"

find "$PATH" -type f -amin -1 > temp.txt.$$
cat temp.txt.$$ | \
while read line
do
fuser -uV $line >> tempmail.txt
done

cat "$tempmail.txt" | mailx -s "$Subject" $MAIL_RECIPIENTS
rm temp.txt.*



whats wrong in this script, as this give errors:
AccessMonitor_Script[7]: find: not found.
AccessMonitor_Script[8]: cat: not found.
AccessMonitor_Script[14]: cat: not found.
AccessMonitor_Script[14]: mailx: not found.
AccessMonitor_Script[15]: rm: not found.


Any Idea about this ???
ASAP.

THANKS.
Aug 30 '07 #1
1 1802
r035198x
13,262 8TB
PATH="/clocal/mqbrkrs/user/mqsiadm/sanjay/"
MAIL_RECIPIENTS="rb903@dcx.com"
Subject="File accessed in last minutes:"

find "$PATH" -type f -amin -1 > temp.txt.$$
cat temp.txt.$$ | \
while read line
do
fuser -uV $line >> tempmail.txt
done

cat "$tempmail.txt" | mailx -s "$Subject" $MAIL_RECIPIENTS
rm temp.txt.*



whats wrong in this script, as this give errors:
AccessMonitor_Script[7]: find: not found.
AccessMonitor_Script[8]: cat: not found.
AccessMonitor_Script[14]: cat: not found.
AccessMonitor_Script[14]: mailx: not found.
AccessMonitor_Script[15]: rm: not found.


Any Idea about this ???
ASAP.

THANKS.
Moved from articles section to the forum.
Sep 6 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

9 posts views Thread by iz0nlee | last post: by
2 posts views Thread by Rasmus Grøndahl Olsen | last post: by
2 posts views Thread by Benny Pedersen | last post: by
3 posts views Thread by Chris Geerdink | last post: by
62 posts views Thread by TheShadow1 | last post: by
2 posts views Thread by Paul | last post: by
2 posts views Thread by Nosferatum | last post: by
5 posts views Thread by hiqu | last post: by
reply views Thread by devrayhaan | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.