“Command not Found” Errors when Sourcing my EnvPATH command not foundWhy the value of $PATH is different for root and normal user?sqlplus: error while loading shared libraries: libsqlplus.so: cannot open shared object file: No such file or directoryWhy is /usr/local/games after /usr/games in the default PATH?PATH is not getting exported by default in Ubuntu 12.04Some error messages displayed when I start terminal (both as root and as normal user)go still run even its path not in environment variable path?How is the best way, for that Jmeter find the JDK o JavaMy $PATH variable is messed up. How to change it back?

What on earth is this small wall-mounted computer?

Does a motor suffer damage when resistance to the intended motion is met?

"Cобака на сене" - is this expression still in use or is it dated?

What is the role of Shutter Speed while using a Manual Flash?

What is the difference between diminished fifth and augmented fourth?

Geometrically Constructible Angles

Need Good OOP Design For World and Countries Problem

Why do we have 0.0 and -0.0 in Ruby?

Fuel gauge very slow to come up after filling - anything to worry about?

Should you write character description points in bulk or spread them out?

Check the validity of a 10-digit telephone number

Why was Wouter Basson never charged with crimes against humanity for Project Coast?

What is the purpose of this single box found in Rome B&B room?

An historical mystery : Poincaré’s silence on Lebesgue integral and measure theory?

50k job is offering 90k worth of shares. Scam?

Do airplanes need brakes in the air?

Which fallacy: "If white privilege exists, why did Elizabeth Warren pretend to be an Indian?"

Explanatory vs Non-explanatory Proofs

My name causes an issue with booking!

Logical judgement of Google Earth Engine

Improving the observation skill & making less blunders

Easiest way to get 36 -12V sources?

Did Abraham and Noah know of each other?

How do the Martian rebels defeat Earth when they're grossly outnumbered and outgunned?



“Command not Found” Errors when Sourcing my Env


PATH command not foundWhy the value of $PATH is different for root and normal user?sqlplus: error while loading shared libraries: libsqlplus.so: cannot open shared object file: No such file or directoryWhy is /usr/local/games after /usr/games in the default PATH?PATH is not getting exported by default in Ubuntu 12.04Some error messages displayed when I start terminal (both as root and as normal user)go still run even its path not in environment variable path?How is the best way, for that Jmeter find the JDK o JavaMy $PATH variable is messed up. How to change it back?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;









1

















I keep a good copy of my env in a file /root/.env which I import when I use cron jobs because I use them to run Expect Scripts which won't run without TERM and a few others(?). I do so as such:
set -o allexport; source /root/.env; set +o allexport



It works, however Cron also emails me the contents of the .env file as a list of Command Not Found errors:



/root/.env: line 4: 34:ln=01: command not found
/root/.env: line 4: 36:mh=00:pi=40: command not found
/root/.env: line 4: 33:so=01: command not found
/root/.env: line 4: 35:do=01: command not found
/root/.env: line 4: 35:bd=40: command not found
/root/.env: line 4: 33: command not found
/root/.env: line 4: 01:cd=40: command not found
/root/.env: line 4: 33: command not found
/root/.env: line 4: 01:or=40: command not found
/root/.env: line 4: 31: command not found


Also this one:
/root/.env: line 18: fg: no job control



How do I get it to stop trying to interpret the file's contents as commands?



Edit: Here's the .env:



root@____:/home/____# cat ~/.env
SHELL=/bin/bash
TERM=vt100
USER=root
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:
SUDO_USER=abdmin
SUDO_UID=1000
USERNAME=root
MAIL=/var/mail/root
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
PWD=/home/abdmin
LANG=en_CA.UTF-8
SHLVL=1
SUDO_COMMAND=/bin/su
HOME=/root
LANGUAGE=en_CA:en
LOGNAME=root
LESSOPEN=| /usr/bin/lesspipe %s
SUDO_GID=1000
LESSCLOSE=/usr/bin/lesspipe %s %s
_=/usr/bin/env









share|improve this question























  • 1





    Those look like $TERMCAP components. Are you sure everything in your .env file is quoted properly? Can you post your .env file here?

    – jwodder
    Jul 17 at 16:57






  • 1





    @jwodder Updated! Is it because of the semicolons?

    – KuboMD
    Jul 17 at 16:59












  • @KuboMD: Yes, reasonably it is. the env output is not suitable for sourcing into a bash program without modifications. How about creating a file with the variables you actually need?

    – Gunnar Hjalmarsson
    Jul 17 at 17:36












  • @GunnarHjalmarsson Yes, I think going by elimination may work. I removed the LS_COLORS line which allowed my programs to run while not generating errors. However I still get the "no job control" error that seems to point to the end of the file. Not sure which variable it's related to.

    – KuboMD
    Jul 17 at 17:43

















1

















I keep a good copy of my env in a file /root/.env which I import when I use cron jobs because I use them to run Expect Scripts which won't run without TERM and a few others(?). I do so as such:
set -o allexport; source /root/.env; set +o allexport



It works, however Cron also emails me the contents of the .env file as a list of Command Not Found errors:



/root/.env: line 4: 34:ln=01: command not found
/root/.env: line 4: 36:mh=00:pi=40: command not found
/root/.env: line 4: 33:so=01: command not found
/root/.env: line 4: 35:do=01: command not found
/root/.env: line 4: 35:bd=40: command not found
/root/.env: line 4: 33: command not found
/root/.env: line 4: 01:cd=40: command not found
/root/.env: line 4: 33: command not found
/root/.env: line 4: 01:or=40: command not found
/root/.env: line 4: 31: command not found


Also this one:
/root/.env: line 18: fg: no job control



How do I get it to stop trying to interpret the file's contents as commands?



Edit: Here's the .env:



root@____:/home/____# cat ~/.env
SHELL=/bin/bash
TERM=vt100
USER=root
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:
SUDO_USER=abdmin
SUDO_UID=1000
USERNAME=root
MAIL=/var/mail/root
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
PWD=/home/abdmin
LANG=en_CA.UTF-8
SHLVL=1
SUDO_COMMAND=/bin/su
HOME=/root
LANGUAGE=en_CA:en
LOGNAME=root
LESSOPEN=| /usr/bin/lesspipe %s
SUDO_GID=1000
LESSCLOSE=/usr/bin/lesspipe %s %s
_=/usr/bin/env









share|improve this question























  • 1





    Those look like $TERMCAP components. Are you sure everything in your .env file is quoted properly? Can you post your .env file here?

    – jwodder
    Jul 17 at 16:57






  • 1





    @jwodder Updated! Is it because of the semicolons?

    – KuboMD
    Jul 17 at 16:59












  • @KuboMD: Yes, reasonably it is. the env output is not suitable for sourcing into a bash program without modifications. How about creating a file with the variables you actually need?

    – Gunnar Hjalmarsson
    Jul 17 at 17:36












  • @GunnarHjalmarsson Yes, I think going by elimination may work. I removed the LS_COLORS line which allowed my programs to run while not generating errors. However I still get the "no job control" error that seems to point to the end of the file. Not sure which variable it's related to.

    – KuboMD
    Jul 17 at 17:43













1












1








1








I keep a good copy of my env in a file /root/.env which I import when I use cron jobs because I use them to run Expect Scripts which won't run without TERM and a few others(?). I do so as such:
set -o allexport; source /root/.env; set +o allexport



It works, however Cron also emails me the contents of the .env file as a list of Command Not Found errors:



/root/.env: line 4: 34:ln=01: command not found
/root/.env: line 4: 36:mh=00:pi=40: command not found
/root/.env: line 4: 33:so=01: command not found
/root/.env: line 4: 35:do=01: command not found
/root/.env: line 4: 35:bd=40: command not found
/root/.env: line 4: 33: command not found
/root/.env: line 4: 01:cd=40: command not found
/root/.env: line 4: 33: command not found
/root/.env: line 4: 01:or=40: command not found
/root/.env: line 4: 31: command not found


Also this one:
/root/.env: line 18: fg: no job control



How do I get it to stop trying to interpret the file's contents as commands?



Edit: Here's the .env:



root@____:/home/____# cat ~/.env
SHELL=/bin/bash
TERM=vt100
USER=root
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:
SUDO_USER=abdmin
SUDO_UID=1000
USERNAME=root
MAIL=/var/mail/root
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
PWD=/home/abdmin
LANG=en_CA.UTF-8
SHLVL=1
SUDO_COMMAND=/bin/su
HOME=/root
LANGUAGE=en_CA:en
LOGNAME=root
LESSOPEN=| /usr/bin/lesspipe %s
SUDO_GID=1000
LESSCLOSE=/usr/bin/lesspipe %s %s
_=/usr/bin/env









share|improve this question

















I keep a good copy of my env in a file /root/.env which I import when I use cron jobs because I use them to run Expect Scripts which won't run without TERM and a few others(?). I do so as such:
set -o allexport; source /root/.env; set +o allexport



It works, however Cron also emails me the contents of the .env file as a list of Command Not Found errors:



/root/.env: line 4: 34:ln=01: command not found
/root/.env: line 4: 36:mh=00:pi=40: command not found
/root/.env: line 4: 33:so=01: command not found
/root/.env: line 4: 35:do=01: command not found
/root/.env: line 4: 35:bd=40: command not found
/root/.env: line 4: 33: command not found
/root/.env: line 4: 01:cd=40: command not found
/root/.env: line 4: 33: command not found
/root/.env: line 4: 01:or=40: command not found
/root/.env: line 4: 31: command not found


Also this one:
/root/.env: line 18: fg: no job control



How do I get it to stop trying to interpret the file's contents as commands?



Edit: Here's the .env:



root@____:/home/____# cat ~/.env
SHELL=/bin/bash
TERM=vt100
USER=root
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:
SUDO_USER=abdmin
SUDO_UID=1000
USERNAME=root
MAIL=/var/mail/root
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
PWD=/home/abdmin
LANG=en_CA.UTF-8
SHLVL=1
SUDO_COMMAND=/bin/su
HOME=/root
LANGUAGE=en_CA:en
LOGNAME=root
LESSOPEN=| /usr/bin/lesspipe %s
SUDO_GID=1000
LESSCLOSE=/usr/bin/lesspipe %s %s
_=/usr/bin/env






bash cron environment-variables






share|improve this question
















share|improve this question













share|improve this question




share|improve this question








edited Jul 17 at 17:29







KuboMD

















asked Jul 17 at 16:44









KuboMDKuboMD

1062 bronze badges




1062 bronze badges










  • 1





    Those look like $TERMCAP components. Are you sure everything in your .env file is quoted properly? Can you post your .env file here?

    – jwodder
    Jul 17 at 16:57






  • 1





    @jwodder Updated! Is it because of the semicolons?

    – KuboMD
    Jul 17 at 16:59












  • @KuboMD: Yes, reasonably it is. the env output is not suitable for sourcing into a bash program without modifications. How about creating a file with the variables you actually need?

    – Gunnar Hjalmarsson
    Jul 17 at 17:36












  • @GunnarHjalmarsson Yes, I think going by elimination may work. I removed the LS_COLORS line which allowed my programs to run while not generating errors. However I still get the "no job control" error that seems to point to the end of the file. Not sure which variable it's related to.

    – KuboMD
    Jul 17 at 17:43












  • 1





    Those look like $TERMCAP components. Are you sure everything in your .env file is quoted properly? Can you post your .env file here?

    – jwodder
    Jul 17 at 16:57






  • 1





    @jwodder Updated! Is it because of the semicolons?

    – KuboMD
    Jul 17 at 16:59












  • @KuboMD: Yes, reasonably it is. the env output is not suitable for sourcing into a bash program without modifications. How about creating a file with the variables you actually need?

    – Gunnar Hjalmarsson
    Jul 17 at 17:36












  • @GunnarHjalmarsson Yes, I think going by elimination may work. I removed the LS_COLORS line which allowed my programs to run while not generating errors. However I still get the "no job control" error that seems to point to the end of the file. Not sure which variable it's related to.

    – KuboMD
    Jul 17 at 17:43







1




1





Those look like $TERMCAP components. Are you sure everything in your .env file is quoted properly? Can you post your .env file here?

– jwodder
Jul 17 at 16:57





Those look like $TERMCAP components. Are you sure everything in your .env file is quoted properly? Can you post your .env file here?

– jwodder
Jul 17 at 16:57




1




1





@jwodder Updated! Is it because of the semicolons?

– KuboMD
Jul 17 at 16:59






@jwodder Updated! Is it because of the semicolons?

– KuboMD
Jul 17 at 16:59














@KuboMD: Yes, reasonably it is. the env output is not suitable for sourcing into a bash program without modifications. How about creating a file with the variables you actually need?

– Gunnar Hjalmarsson
Jul 17 at 17:36






@KuboMD: Yes, reasonably it is. the env output is not suitable for sourcing into a bash program without modifications. How about creating a file with the variables you actually need?

– Gunnar Hjalmarsson
Jul 17 at 17:36














@GunnarHjalmarsson Yes, I think going by elimination may work. I removed the LS_COLORS line which allowed my programs to run while not generating errors. However I still get the "no job control" error that seems to point to the end of the file. Not sure which variable it's related to.

– KuboMD
Jul 17 at 17:43





@GunnarHjalmarsson Yes, I think going by elimination may work. I removed the LS_COLORS line which allowed my programs to run while not generating errors. However I still get the "no job control" error that seems to point to the end of the file. Not sure which variable it's related to.

– KuboMD
Jul 17 at 17:43










1 Answer
1






active

oldest

votes


















0


















Thanks to helpful comments, I was able to remove the variables I didn't need until cron stopped complaining.



command not found


Errors were silenced by removing the LS_COLORS line from my .env file. The fg: no job control error, as I understand it, was caused by these two lines:



LESSOPEN=| /usr/bin/lesspipe %s
LESSCLOSE=/usr/bin/lesspipe %s %s


because the shell was interpreting %s as fg.
This is unique to my case, but it got my cron jobs working with my expect scripts, so I'm satisfied with this outcome.






share|improve this answer


























  • To successfully source those variables, you simply need to quote their values, e.g. LESSOPEN="| /usr/bin/lesspipe %s" (due to the spaces).

    – Gunnar Hjalmarsson
    Jul 17 at 19:17













Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);














draft saved

draft discarded
















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1159009%2fcommand-not-found-errors-when-sourcing-my-env%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown


























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0


















Thanks to helpful comments, I was able to remove the variables I didn't need until cron stopped complaining.



command not found


Errors were silenced by removing the LS_COLORS line from my .env file. The fg: no job control error, as I understand it, was caused by these two lines:



LESSOPEN=| /usr/bin/lesspipe %s
LESSCLOSE=/usr/bin/lesspipe %s %s


because the shell was interpreting %s as fg.
This is unique to my case, but it got my cron jobs working with my expect scripts, so I'm satisfied with this outcome.






share|improve this answer


























  • To successfully source those variables, you simply need to quote their values, e.g. LESSOPEN="| /usr/bin/lesspipe %s" (due to the spaces).

    – Gunnar Hjalmarsson
    Jul 17 at 19:17
















0


















Thanks to helpful comments, I was able to remove the variables I didn't need until cron stopped complaining.



command not found


Errors were silenced by removing the LS_COLORS line from my .env file. The fg: no job control error, as I understand it, was caused by these two lines:



LESSOPEN=| /usr/bin/lesspipe %s
LESSCLOSE=/usr/bin/lesspipe %s %s


because the shell was interpreting %s as fg.
This is unique to my case, but it got my cron jobs working with my expect scripts, so I'm satisfied with this outcome.






share|improve this answer


























  • To successfully source those variables, you simply need to quote their values, e.g. LESSOPEN="| /usr/bin/lesspipe %s" (due to the spaces).

    – Gunnar Hjalmarsson
    Jul 17 at 19:17














0














0










0









Thanks to helpful comments, I was able to remove the variables I didn't need until cron stopped complaining.



command not found


Errors were silenced by removing the LS_COLORS line from my .env file. The fg: no job control error, as I understand it, was caused by these two lines:



LESSOPEN=| /usr/bin/lesspipe %s
LESSCLOSE=/usr/bin/lesspipe %s %s


because the shell was interpreting %s as fg.
This is unique to my case, but it got my cron jobs working with my expect scripts, so I'm satisfied with this outcome.






share|improve this answer














Thanks to helpful comments, I was able to remove the variables I didn't need until cron stopped complaining.



command not found


Errors were silenced by removing the LS_COLORS line from my .env file. The fg: no job control error, as I understand it, was caused by these two lines:



LESSOPEN=| /usr/bin/lesspipe %s
LESSCLOSE=/usr/bin/lesspipe %s %s


because the shell was interpreting %s as fg.
This is unique to my case, but it got my cron jobs working with my expect scripts, so I'm satisfied with this outcome.







share|improve this answer













share|improve this answer




share|improve this answer










answered Jul 17 at 18:18









KuboMDKuboMD

1062 bronze badges




1062 bronze badges















  • To successfully source those variables, you simply need to quote their values, e.g. LESSOPEN="| /usr/bin/lesspipe %s" (due to the spaces).

    – Gunnar Hjalmarsson
    Jul 17 at 19:17


















  • To successfully source those variables, you simply need to quote their values, e.g. LESSOPEN="| /usr/bin/lesspipe %s" (due to the spaces).

    – Gunnar Hjalmarsson
    Jul 17 at 19:17

















To successfully source those variables, you simply need to quote their values, e.g. LESSOPEN="| /usr/bin/lesspipe %s" (due to the spaces).

– Gunnar Hjalmarsson
Jul 17 at 19:17






To successfully source those variables, you simply need to quote their values, e.g. LESSOPEN="| /usr/bin/lesspipe %s" (due to the spaces).

– Gunnar Hjalmarsson
Jul 17 at 19:17



















draft saved

draft discarded















































Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1159009%2fcommand-not-found-errors-when-sourcing-my-env%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown









Popular posts from this blog

Tamil (spriik) Luke uk diar | Nawigatjuun

Align equal signs while including text over equalitiesAMS align: left aligned text/math plus multicolumn alignmentMultiple alignmentsAligning equations in multiple placesNumbering and aligning an equation with multiple columnsHow to align one equation with another multline equationUsing \ in environments inside the begintabularxNumber equations and preserving alignment of equal signsHow can I align equations to the left and to the right?Double equation alignment problem within align enviromentAligned within align: Why are they right-aligned?

Training a classifier when some of the features are unknownWhy does Gradient Boosting regression predict negative values when there are no negative y-values in my training set?How to improve an existing (trained) classifier?What is effect when I set up some self defined predisctor variables?Why Matlab neural network classification returns decimal values on prediction dataset?Fitting and transforming text data in training, testing, and validation setsHow to quantify the performance of the classifier (multi-class SVM) using the test data?How do I control for some patients providing multiple samples in my training data?Training and Test setTraining a convolutional neural network for image denoising in MatlabShouldn't an autoencoder with #(neurons in hidden layer) = #(neurons in input layer) be “perfect”?