[all variants] ~/.bashrc and cron
 

[all variants] ~/.bashrc and cron

 
Hi all,
I’m using session variables from ~/.bashrc, but it didn’t work in cron until I’ve commented out return command

Code:

# If not running interactively, don't do anything
case $- in
    *i*) ;;
#      *) return;;


Is there any possible reason I should not use this approach?

 

Previous [SOLVED] Discover/Unsigned Repo Problem
Next Gaming Upgrades - Spendy!
 

About author

You might also like

Ubuntu Dsicussions 0 Comments

Cant access Server with OpenSSH remotely

Hi, I got two computers on my local network. One is running Ubuntu Server 20.04, the other Windows (with Putty). I can access my Ubuntu server, using putty on the

Ubuntu Dsicussions 0 Comments

[ubuntu] Saving programme settings to new Ubuntu

Kia Ora friends, I am going to do a new installation of Ubuntu (from 20.04 to 20.04, but the old disk from the first installation was an emergency solution on

Ubuntu Dsicussions 0 Comments

Snap! Collaborate and listen!

You’d think we would be running out of terrible/great (delete as applicable) 80’s songs to try and shoehorn into the titles of these blog posts. Turns out, not quite yet!

0 Comments

No Comments Yet!

You can be first to comment this post!

Leave a Reply