![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Whats wrong in the script? | nehagupta2008 | UNIX for Dummies Questions & Answers | 1 | 06-02-2008 03:24 AM |
| tell me whats wrong with this | nadman123 | Shell Programming and Scripting | 1 | 04-14-2008 08:58 PM |
| Whats wrong with this script? | kayarsenal | Shell Programming and Scripting | 2 | 08-25-2006 06:58 AM |
| Whats wrong with this 5 line script! | c19h28O2 | Shell Programming and Scripting | 9 | 05-10-2006 10:04 PM |
| whats wrong with this awk??? | george_ | Shell Programming and Scripting | 5 | 04-04-2006 01:58 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
Whats wrong in this Script ???
PATH="/clocal/mqbrkrs/user/mqsiadm/sanjay"
MAIL_RECIPIENTS="xyz@abc.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.* This script is giving Errors like when i run this script: 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. Do you have any Idea about this ?? Thanks!! |
| Forum Sponsor | ||
|
|
|
|||
|
fuser command ??
Thanks for the Reply !
Ya i got it !! I want to ask one thing in that ... here i have written a line using command fuser, its not working for some file but its working for directory. Do you have any idea about this command. I have looked into man fuser, which shows ProcessNumber and the user name (-c) who has accessed that. Thanks !! |
|||
| Google The UNIX and Linux Forums |