Here my question is, there is a directory one under that file needs to be watched sample.trg..!
but directory one owned by another user and he has provided no permission to its group and others....
How the job gets success ?
Hello,
I am trying to create a file watcher script to check for a file until certain time and throw a message. can some one please help me if there is script handy ??
Thanks,
Sateesh (1 Reply)
Hi
Please help me in this
I want to execute a shell script abc.ksh.
But I only want it to execute if file XYZ is not present.
If file XYZ is present than I want to unix to sleep for 5 Sec and than agaian check for XYX existence.
if it sleeps for more than 30 seconds ( 6 time )I want it to... (3 Replies)
Many of us used to or work now with customers. So it naturally happens that something really funny or weird comes across - stories that need to be told.
What is it for you ?
I used to work as a technical consultant for a Software Company and part of my job was to maintain and troubleshoot... (5 Replies)
Hi,
I need a script for "FILE WATCHER"
I have in a remote FTP location server named MAIN _104
EveryDay mrng 8 i hav to search couple of folders(COL, ATT, TRA) in that FTP server (MAIN_104), and if any files are present in that folders i hav to bring back to my computer and store it anywhere... (4 Replies)
Hi Experts
I will have be having 3 types of files in directory
file1_p0_date
file1_p1_date
file1_p2_date
As soon as it sees any of the files it needs to kick off another process and also would need the file name
For this I am creating a file watcher script which will look for file1* My... (2 Replies)
hi,
i am working on sco unix 5.07, i have 10 individual servers networked locally in which sco os is installed. one of them is not transferring the file to other servers but accepting all files. means Server (A) can accept the file through FTP from any server but not transferring FTP its own... (9 Replies)
Hi friends,
Instead of creating a script autosys 11.3 has a feature for filewatcher.
Can anyone please share a link where ican create a file watcher job (more like manual).
i need to create a filewatcher job where the job should search for a file for every 5 mins
and send a mail whether the... (1 Reply)
Hi friends,
I do not have much thoughts so need any help on the below issue:
I need to create shell script that will find the files & throw an error through job (autosys) when file not found.
Daily we use to receive 3 files from a system.
Obstacles:
1) All 3 files names are same.
2)... (4 Replies)
if test -n "$(find/data/path/ 'filename.txst' -print-quit)
then
echo "file found"
exit 0
else
echo "file not found"
exit 46
fi
So I basically looking to understand the
if test -n "$(find/data/path/ 'filename.txst' -print-quit)
line.
Pls help to elaborate what this command... (6 Replies)
Discussion started by: Nsharma3006
6 Replies
LEARN ABOUT FREEBSD
rmuser
RMUSER(8) BSD System Manager's Manual RMUSER(8)NAME
rmuser -- remove users from the system
SYNOPSIS
rmuser [-yv] [-f file] [username ...]
DESCRIPTION
The rmuser utility removes one or more users submitted on the command line or from a file. In removing a user from the system, this utility:
1. Removes the user's crontab(1) entry (if any).
2. Removes any at(1) jobs belonging to the user.
3. Sends a SIGKILL signal to all processes owned by the user.
4. Removes the user from the system's local password file.
5. Removes the user's home directory (if it is owned by the user), including handling of symbolic links in the path to the actual home
directory.
6. Removes the incoming mail and POP daemon mail files belonging to the user from /var/mail.
7. Removes all files owned by the user from /tmp, /var/tmp, and /var/tmp/vi.recover.
8. Removes the username from all groups to which it belongs in /etc/group. (If a group becomes empty and the group name is the same as the
username, the group is removed; this complements adduser(8)'s per-user unique groups.)
9. Removes all message queues, shared memory segments and semaphores owned by the user.
The rmuser utility refuses to remove users whose UID is 0 (typically root), since certain actions (namely, killing all the user's processes,
and perhaps removing the user's home directory) would cause damage to a running system. If it is necessary to remove a user whose UID is 0,
see vipw(8) for information on directly editing the password file.
If rmuser was not invoked with the -y option, it will show the selected user's password file entry and ask for confirmation that the user be
removed. It will then ask for confirmation to delete the user's home directory. If the answer is in the affirmative, the home directory and
any files and subdirectories under it will be deleted only if they are owned by the user. See pw(8) for more details.
As rmuser operates, it informs the user regarding the current activity. If any errors occur, they are posted to standard error and, if it is
possible for rmuser to continue, it will.
The options are as follows:
-f file The rmuser utility will get a list of users to be removed from file, which will contain one user per line. Anything following a
hash mark ('#'), including the hash mark itself, is considered a comment and will not be processed. If the file is owned by anyone
other than a user with UID 0, or is writable by anyone other than the owner, rmuser will refuse to continue.
-y Implicitly answer ``yes'' to any and all prompts. Currently, this includes prompts on whether to remove the specified user and
whether to remove the home directory. This option requires that either the -f option be used, or one or more user names be given
as command line arguments.
-v Enable verbose mode. Normally, the output includes one line per removed user; however, with this option rmuser will be much more
chatty about the steps taken.
username Identifies one or more users to be removed; if not present, rmuser interactively asks for one or more users to be removed.
FILES
/etc/master.passwd
/etc/passwd
/etc/group
/etc/spwd.db
/etc/pwd.db
SEE ALSO at(1), chpass(1), crontab(1), finger(1), passwd(1), group(5), passwd(5), adduser(8), pw(8), pwd_mkdb(8), vipw(8)HISTORY
The rmuser utility appeared in FreeBSD 2.2.
BUGS
The rmuser utility does not comprehensively search the file system for all files owned by the removed user and remove them; to do so on a
system of any size is prohibitively slow and I/O intensive. It is also unable to remove symbolic links that were created by the user in /tmp
or /var/tmp, as symbolic links on 4.4BSD file systems do not contain information as to who created them. Also, there may be other files cre-
ated in /var/mail other than /var/mail/username and /var/mail/.pop.username that are not owned by the removed user but should be removed.
The rmuser utility has no knowledge of YP/NIS, and it operates only on the local password file.
BSD May 10, 2002 BSD