time sheet reminder for the unix based oses: mac os x linux solaris

7
Time Sheet Reminder For the UNIX based OSes: Mac OS X Linux Solaris

Upload: kory-davidson

Post on 14-Dec-2015

214 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: Time Sheet Reminder For the UNIX based OSes: Mac OS X Linux Solaris

Time Sheet Reminder

For the UNIX based OSes:Mac OS X

LinuxSolaris

Page 2: Time Sheet Reminder For the UNIX based OSes: Mac OS X Linux Solaris

Simple Solution

Use the OS’s cron to start up the command

Page 3: Time Sheet Reminder For the UNIX based OSes: Mac OS X Linux Solaris

Crontab Information

• This description, about the crontab entry, was found in the wiki at: http://en.wikipedia.org/wiki/Crontab

#+---------------- minute (0 - 59)

# | +------------- hour (0 - 23)

# | | +---------- day of month (1 - 31)

# | | | +------- month (1 - 12)

# | | | | +---- day of week (0 - 7) (Sunday=0 or 7)

# | | | | |

* * * * * Command_to_be_executed

• For information about the UNIX shells, crontabs, or setting environment variables, such as “DISPLAY=” and “export”, search google.com or wikipedia.com

Page 4: Time Sheet Reminder For the UNIX based OSes: Mac OS X Linux Solaris

For Mac OS X• Start a terminal• At the prompt type:

crontab –e• Within the editor add the following line:

– For Firefox users:30      16      *       *       1,2,3,4,5    /usr/bin/open -a firefox http://mytime.stsci.edu

– For Safari users:30      16      *       *       1,2,3,4,5    /usr/bin/open -n -a safari http://mytime.stsci.edu

• Save it & exit the editor• Suggestion: use the free GUI app “CronniX” to edit your

crontab

Page 5: Time Sheet Reminder For the UNIX based OSes: Mac OS X Linux Solaris

For Linux & Solaris

• Start a terminal• At the prompt type:

crontab –e• Within the editor add the following line:

30      16      *       *       1,2,3,4,5       DISPLAY=localhost:0.0; export DISPLAY; /usr/bin/firefox http://mytime.stsci.edu

• Save it & exit the editor

Page 6: Time Sheet Reminder For the UNIX based OSes: Mac OS X Linux Solaris

For CSC folks• Substitute the following URL:

http://mytime.stsci.edu

with

https://etes.csc.com/iTES/loginframe.htm

Page 7: Time Sheet Reminder For the UNIX based OSes: Mac OS X Linux Solaris

Thanks for their assistance:

• Josh Greenberg (JHU P&A System Administrator)

• Andrew Spina (ST APT developer)

• Patrick McCauley (ST APT developer)

• Rob Hawkins (ST PCG developer)

• Sara Anderson (ST DPAS developer)