11-22-2004
Hp UX
I am using HP -UX .
Under /etc/ I have 'rc.config.d' folder which shows many files/scripts.
Do I have to create a script under this folder 'rc.config.d'?
Can I give any name to the script like 'scleanfs'.
scleanfs
------------------
#!/usr/bin/sh
rm /complete_dirpath/f*
------------------
Will this work?
------------------------------------------------------------------
Is it that whenever a unix server restarts, all the scripts present
in a particular folder under /etc/ get executed???
( And in case of HP-UX this folder is rc.config.d ??? )
------------------------------------------------------------------
Thanks!
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi there guys. I'm quite new in using unix and just recently experienced missing file problem. Someone accidentally or likely intentionally deleted one specific folders that contains important file. Now my question is, can any other user aside from root can do such action? Please help. ... (2 Replies)
Discussion started by: rhomel101
2 Replies
2. UNIX for Dummies Questions & Answers
OS: Solaris 8
I deleted a large file (around 13 Gigs) from my system.
But the output of df -k remains the same. The
capacity % is constant. However one strange thing
is happening- My available space is decreasing, my used
space in increasing (The opposite should happen).
This is happening... (2 Replies)
Discussion started by: run_time_error
2 Replies
3. UNIX for Dummies Questions & Answers
I am using unix via telnet ssh and i have a problem
I was testing the server.
I made a directory.
Transfered a file from an ftp to it.
Opened the file with the vi text editor
--This where my problem came.....
I tried deleting the file using rm somefile.htm
when is typed ls i noticed that... (2 Replies)
Discussion started by: shdwsclan
2 Replies
4. Solaris
Hi,
I have a mail server with limited space and operating system is sun solaris 8 (sparc). I do not have provisions to increase the space for home directory.
So i have to delete files from /home/username/mail/trash which are more than 10 days old automatically.
So my script should be like... (1 Reply)
Discussion started by: crown2100bd
1 Replies
5. Shell Programming and Scripting
I got help in another forum but now I need further help so I figured I'd ask here. I had to write a script to delete certain filenames of certain size. I got this far..
find . -size 110c -name "*testing*" -print | xargs -n 1 rm -i
It finds the correct files, but the prompts to delete are all... (2 Replies)
Discussion started by: NycUnxer
2 Replies
6. Shell Programming and Scripting
I looked into the sticky bit, but I think, if possible, that I would prefer to have the file recreate itself after deletion. The file is several directories deep, and from time to time the top level directory will be trashed. I need the file to recreate after this. Is it possible to perhaps... (13 Replies)
Discussion started by: glev2005
13 Replies
7. Red Hat
Hi guys :)
I got a big problem.
Yesterday I changed the IP of a server. Then i restarted the network service, did a DNS entry and so on. Nameserver are the same as always.
After a few minutes after boot the network disconnects -> no ping, no ssh.
Approximately 30 seconds later it starts... (1 Reply)
Discussion started by: mario_linux
1 Replies
8. Shell Programming and Scripting
Hi Everyone,
There are certain files under a folder 'ABC' and the entries for these files are there in another file(fname) under a different folder 'XYZ'. I want to compare the folder contents(ABC) with
the file(fname) contents and delete the mismatching / non-existing ones from the file,... (4 Replies)
Discussion started by: swasid
4 Replies
9. UNIX for Dummies Questions & Answers
Dear All,
It would be really nice, if you could help me to write a script for deletion of list of user( more than 15000 users) stored in a file and sorted by email address( i need deletion of only a particular type of mail address).
Is the any script to write and take the file as input and... (3 Replies)
Discussion started by: Chand
3 Replies
10. Shell Programming and Scripting
I am reading in a file in a Korn shell script. The file has one header row followed by possibly millions of data rows. I want to do one thing to the header row and write it out to a new output file, then something different to the data rows. My code looks like this:
read header < $infile
... (4 Replies)
Discussion started by: DJR
4 Replies
LEARN ABOUT HPUX
clear_clearinghouse
clear clearinghouse(1m) clear clearinghouse(1m)
NAME
clear clearinghouse - Removes knowledge of the specified clearinghouse from the server's memory
SYNOPSIS
cdscp clear clearinghouse clearinghouse-name
ARGUMENTS
clearinghouse-name The full name of the clearinghouse.
DESCRIPTION
The clear clearinghouse command removes knowledge of the specified clearinghouse from the server's memory. The clearinghouse files are not
deleted. This ensures that the clearinghouse is not automatically enabled on server restarts. If you issue a list clearinghouse command,
the clearinghouse will be listed.
Before you can delete a cleared clearinghouse, you must use the create clearinghouse command to recreate it. After recreating the clear-
inghouse, you can use the delete clearinghouse command to remove it.
This command is part of the process of relocating a clearinghouse. See the OSF DCE Administration Guide for more information.
Privilege Required
You must have write permission to the server on which the clearinghouse resides.
NOTE
This command is replaced at Revision 1.1 by the dcecp command and may not be provided in future releases of DCE.
EXAMPLES
The following command clears the clearinghouse /.:/Paris2_CH before moving it to another server: cdscp> clear clearinghouse /.:/Paris2_CH
RELATED INFORMATION
Books: OSF DCE Administration Guide
Commands: create clearinghouse(1m), delete clearinghouse(1m), list clearinghouse(1m), set cdscp preferred clearinghouse(1m), show cdscp
preferred clearinghouse(1m), show clearinghouse(1m)
clear clearinghouse(1m)