Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

execute cron.daily

add cronjob
* * * * *   /usr/bin/env > /home/username/tmp/cron-env

vi run-as-cron:
#!/bin/bash
/usr/bin/env -i $(cat /home/username/tmp/cron-env) "$@"

then run:
run-as-cron /the/problematic/script --with arguments --and parameters
Comment

PREVIOUS NEXT
Code Example
Shell :: hyper terminal 
Shell :: scp copy directories 
Shell :: What commands would you use to force an overwrite of your local files with the master branch? 
Shell :: extract a tar file in linux 
Shell :: bash if with function call 
Shell :: bash loop over files with extension 
Shell :: git recurse submodules 
Shell :: how to get specific lines of shell output 
Shell :: delete merge branch git 
Shell :: EDIT WSL2 terminal user% 
Shell :: bash start two processes at the same time 
Shell :: update helm repo 
Shell :: grep a variable 
Shell :: git clone into path 
Shell :: linux change password chpasswd 
Shell :: cp command 
Shell :: git diff ignore file 
Shell :: how to execute script and pass a parameterin linux 
Shell :: git 3 way merge 
Shell :: docker-compose mongodb replica - init replica 
Shell :: Remove Files and Directories 
Shell :: mongo shell change db 
Shell :: git basics 
Shell :: how to remove package files in linux 
Shell :: how to install macos from usb 
Shell :: Dockerfile RUN cmd before prompt 
Shell :: install phoenix 1.6 
Shell :: install kali synaptic software manager 
Shell :: pyinstaller onefile hidden window 
Shell :: count symlink dir bash 
ADD CONTENT
Topic
Content
Source link
Name
5+8 =