Skip to content

Instantly share code, notes, and snippets.

@atomicstack
Created December 30, 2021 02:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save atomicstack/7367df21b7b9fce5019a3c40114723d5 to your computer and use it in GitHub Desktop.
Save atomicstack/7367df21b7b9fce5019a3c40114723d5 to your computer and use it in GitHub Desktop.
lepton ~/bash_perl  zmodload zsh/sched
lepton ~/bash_perl  sched --help
lepton ~/bash_perl  sched
lepton ~/bash_perl  echo $zsh_scheduled_events
lepton ~/bash_perl  sched -o +10 echo hello world
lepton ~/bash_perl  echo $zsh_scheduled_events
1640831449:-o:echo hello world
lepton ~/bash_perl 
lepton ~/bash_perl  echo $zsh_scheduled_events
1640831449:-o:echo hello world
lepton ~/bash_perl 
lepton ~/bash_perl  echo $zsh_scheduled_events
1640831449:-o:echo hello world
lepton ~/bash_perl 
hello world
lepton ~/bash_perl 
lepton ~/bash_perl  sched -o +10 echo '$(date +%F)' hello world
lepton ~/bash_perl  echo $zsh_scheduled_events
1640831481:-o:echo $(date +%F) hello world
lepton ~/bash_perl 
2021-12-30 hello world
lepton ~/bash_perl  sched -o +10 echo $(date +%F-%T)'->$(date +%F-%T)' hello world
lepton ~/bash_perl  echo $zsh_scheduled_events
1640831521:-o:echo 2021-12-30-03:31:51->$(date +%F-%T) hello world
lepton ~/bash_perl 
lepton ~/bash_perl 
lepton ~/bash_perl  echo $zsh_scheduled_events
lepton ~/bash_perl  ls
2021-12-30-03:32:01 bperl.c iperl.c Makefile stdc.h
lepton ~/bash_perl  rm 2021-12-30-03:32:01
lepton ~/bash_perl  sched -o +10 echo $(date +%F-%T)'-\>$(date +%F-%T)' hello world
lepton ~/bash_perl 
2021-12-30-03:32:54->2021-12-30-03:33:04 hello world
lepton ~/bash_perl 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment