- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Erase file
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2004 03:16 PM
04-01-2004 03:16 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2004 03:39 PM
04-01-2004 03:39 PM
SolutionIf there is a cron job that reads "rm -f file" which will be executed once in a minute, I dont understand why do you think you will have so many batch jobs running in the system.
Once it deleted the file (which should take not more than 2-3 secs), the process is going to vanish. Yes it is true that your cron log file is going to grow out of bounds.
Alternative way is to have a script running in the background that does this
# vi /root/rmfile.sh
while true
do
rm -f file
sleep 30
done
#
# nohup /root/rmfile.sh 1>/dev/null 2>&1 &
Sundar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2004 03:42 PM
04-01-2004 03:42 PM
Re: Erase file
Wow, you have assigned points for 1 out of 121 replies !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2004 04:17 PM
04-01-2004 04:17 PM
Re: Erase file
If you're not interested in the data, a better solution might be to create a symbolic link to /dev/null. But it depends on the program if that works (sometimes programs remove files before creating a new version of it, for instance).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2004 04:26 PM
04-01-2004 04:26 PM
Re: Erase file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2004 05:51 PM
04-01-2004 05:51 PM
Re: Erase file
(replace rmbatchjob with a string that will identify the rmbatchjob processes!)
If started from cron, you could also use the cron log to find the processes, but the above line is simpler.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2004 09:42 PM
04-01-2004 09:42 PM
Re: Erase file
I would be asking:
1) WHY generate this file if the first thing you want to do is delete it.
2) If you have to generate the file, can you affect WHERE it gets generated (say redirect it to /dev/null - but that depends on HOW it gets generated).
3) WHY does it cause problems with other processes?
4) WHEN does it get generated? Why run a job every few minutes if it gets generated within a 1 or two hour time window - just time the job to run during that window.
Personally, if no-one wants this file, I'd force the developers (or beat up the vendor) and get them to change their code.
Col.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2004 10:08 PM
04-01-2004 10:08 PM
Re: Erase file
but this one was very good in deed ... ;D
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2004 01:43 AM
04-02-2004 01:43 AM
Re: Erase file
It is in the left screen, down member Status.
Not obbligation, only if you want !
;-) Bye
Bruno
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2004 02:54 AM
04-02-2004 02:54 AM
Re: Erase file
Change the program - best way to resolve this - not find a "hack/bandaid" solution...
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2004 04:00 AM
04-02-2004 04:00 AM
Re: Erase file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2004 04:05 AM
04-02-2004 04:05 AM
Re: Erase file
Your answer is here:-
http://forums1.itrc.hp.com/service/forums/pageList.do?userId=CA1084347&listType=unassigned&forumId=1
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2004 04:16 AM
04-02-2004 04:16 AM
Re: Erase file
Yes, I agree everyone should read "Patrick Wallek's forums etiquette guideline"
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=140137
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2004 04:17 AM
04-02-2004 04:17 AM
Re: Erase file
I fully agree -- help is happening - just some gentle prodding as well.
Paula