if [ -e /run ] then temp='/run' # with FHS version 2.3, such data were stored in /var/run #for compatibility there might be a simlink elif [ -e /var/run ] then temp='/var/run' elif [ -e /dev/shm/] then temp='/var/shm' elif [ -e /var/tmp ] then #this should not occur with the current fhs standerts #switching to /var/tmp just in case ;) temp='/var/tmp' fi echo $temp This is just to give you a basic idea (I'm still working on it my self(for my final project ;) Additionally but i believe this could be helpful for others.What you could now do is just create a file in the directory with the name of the process followed by a time stamp to create a cronjob to automatically clean up you're temporary fills in regular intervals or just by calling the rm command when you no longer require the file.
Some party that must have been.” Pulling no punches, Lady C insisted: “I think we know where they are and what they’re doing. “I saw them as I was leaving which was well after midnight. “Some people are like Oscar Wilde, they can resist anything but temptation.I could write a script that does it but I wondered if there was one in the unix toolset that I don't know about.To my knowledge, there is no standard or traditional tool which works this way.Testing for directory existence saves an # mkdir(1) execution in the common case, improving performance infinitesimally; # it could matter if runcached is run from inside a tight loop.# Hide errors so that runcached itself is transparent (doesn't mix new messages # into whatever the called program outputs).But he managed to frustrate bosses by “going missing” yesterday.
Lady C claimed he was too busy having “rumpy pumpy” with Lauren to turn up.Visit Stack Exchange # invokes echo, saves to cache (using command with arguments as key), returns "hi" cache 10 echo hi # wait 2 seconds sleep 2 # doesn't invoke echo, from cache returns "hi" cache 10 echo hi # wait 10 seconds sleep 10 # with cache expired, invokes echo, returns "hi" cache 10 echo hi Obviously echo wouldn't be the real use-case.Basically cache STDOUT, STDERR and status for a given command arguments, so the next call to the same process doesn't have to re-run it.“Two words…rumpy pumpy.” When approached by The Sun Online about Lady C’s claims, Lauren’s spokesman insisted: “These accusations are 100 per cent incorrect.” Trying to defend the couple – who started dating after meeting on Celebs Go Dating – Ruth brought the conversation to an end.But the concerned host added: “We can’t find you anywhere. But he is new to fame and newly single, so I feel like he needs to go out there and enjoy being single. ” Lauren and Jack have joined the agency in a bid to find love with the help of Paul Carrick Brunson and Anna Williamson.Facing the music today, Jack tweeted: “I wanted to apologise to everyone @thismorning & the viewers for my no show yesterday. I got over excited at the late night filming of the CGD wrap party and obviously regret that now.