Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

crontab command not found

## Cron often clears the whole $PATH environment
## So the shell doesn't know where to look for the command

## You should set the $PATH enviorment in crontab:
PATH="/usr/local/bin:/usr/bin:/bin"
0 1 * * * db2 connect to myDB2

## Or add the $PATH enviorment in your script:
#!/bin/bash
PATH="/usr/local/bin:/usr/bin:/bin"

# rest of script follows
Comment

PREVIOUS NEXT
Code Example
Shell :: ssh config 
Shell :: set permanant environemt variable 
Shell :: wget download list of urls 
Shell :: calculate float division 
Shell :: zinit 
Shell :: install slack ubuntu/linux 
Shell :: wsl windows directory 
Shell :: bash if number equals 
Shell :: pip3 install from git 
Shell :: git global name & email 
Shell :: bash read file line by line 
Shell :: kafka set retention time for topic 
Shell :: git cherry pick 
Shell :: find file by name linux 
Shell :: reload crontab linux 
Shell :: how to install node dependencies 
Shell :: gitignore all log files 
Shell :: bash arguments parsing 
Shell :: create alias in powershell permanently 
Shell :: d3 install 
Shell :: install powershell using cmd windows 10 
Shell :: node install mint 
Shell :: How to find your ip on debian linux wsl 
Shell :: ubuntu install filebeat 
Shell :: vlc 
Shell :: initialize github repository 
Shell :: bash go to home directory 
Shell :: shell command read first lines 
Shell :: center table markdown github 
Shell :: git how to remove git 
ADD CONTENT
Topic
Content
Source link
Name
8+7 =