![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Whats wrong in the script? | nehagupta2008 | UNIX for Dummies Questions & Answers | 1 | 06-02-2008 07:24 AM |
| tell me whats wrong with this | nadman123 | Shell Programming and Scripting | 1 | 04-15-2008 12:58 AM |
| Whats wrong with this script? | kayarsenal | Shell Programming and Scripting | 2 | 08-25-2006 10:58 AM |
| Whats wrong with this 5 line script! | c19h28O2 | Shell Programming and Scripting | 9 | 05-11-2006 02:04 AM |
| whats wrong with this awk??? | george_ | Shell Programming and Scripting | 5 | 04-04-2006 05:58 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | 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!! |
|
||||
|
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 !! |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|