cancel
Showing results for 
Search instead for 
Did you mean: 

Running but missing file

ATIL VOLKAN YILDIRIM_1
Occasional Advisor

Running but missing file

Hi experts,

We lately discovered that one of our key scripts is missing in filesystem. The funny thing is the script keeps running in the background for a couple of months. My question is; Is there a way to recover content of this running file from memory?

Thanks to all...
5 REPLIES
Steven E. Protter
Exalted Contributor

Re: Running but missing file

Shalom,

No, you can not recover it from memory.

if its still on the file system table you may be able to find it on disk.

I would suggest pulling a tape from backup to get a copy though.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Pete Randall
Outstanding Contributor

Re: Running but missing file

Is this job scheduled to run through cron or at? If it uses at, the script itself will be stored, along with the environment in /var/spool/cron/atjobs.

This is the only way I can think of that you can retrieve your script without resorting to backup tapes.


Pete

Pete
ATIL VOLKAN YILDIRIM_1
Occasional Advisor

Re: Running but missing file

Thanks all,
No we started it with nohup manually...The backup tape is offsite now so I was looking for a quick way...

Thanks for the reply...
Dennis Handly
Acclaimed Contributor

Re: Running but missing file

>the script keeps running in the background for a couple of months.

Do you see this in ps(1)? If it starts in cron, then there maybe errors saying that the script is missing?

If it has been continually running, the file is still there on disk. While lsof could find the process, I'm not sure what you could to once you found this info?
ATIL VOLKAN YILDIRIM_1
Occasional Advisor

Re: Running but missing file

Hi,
No it's not started from cron. We started it in command line, it keeps running in the background from memory, but it no longer exists on the disk...Anyway thank you all, I brought the tape to site and restored the file... But I still have no idea why the file is gone, checked the history but couldn't find any command that could result in deleting this file...The filesytem this file resides on crashed to %100 sometime ago, maybe something has happened then...Weird...

Thanks again...