Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

brianhill11/touch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

4 Commits

Repository files navigation

Automatically touch Hoffman2 $SCRATCH files on a weely basis

This repo contains scripts for creating a cron job which runs weekly and touches all of the files in your $SCRATCH directory, so that they do not get deleted.

The code assumes you've cloned the repo in your $HOME directory. If cloned in a different location, the file paths in qsub_touch.sh and cron-file.txt need to be updated.

NOTE: this is not a fail-proof method, so please make sure any important files are moved to a file location that is safe/backed up.

Instructions:

  1. Make sure that qsub_touch.sh and run_touch.sh have user execute permissions. If not, run: chmod u+x *_touch.sh
  2. If the repo was not cloned in your $HOME directory:
  • Modify the cron-file.txt file to point to your qsub_touch.sh file
  • Modify the qsub_touch.sh file to change to the code repo
  1. Install the crontab from the cron file (NOTE: this will destroy existing crontab entries!): crontab cron-file.txt
  2. Verify the crontab was installed: crontab -l

About

Code for setting up weekly job that touches each file in your scratch directory

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors

Languages

AltStyle によって変換されたページ (->オリジナル) /