9
How to guarantee availability of $BASH_ENVview story

http://unix.stackexchange.com – A non-interactive, non-login shell will try to source any script specified in $BASH_ENV. But how do I guarantee $BASH_ENV is set before a cron job or script has a chance to set $BASH_ENV for any particular session? Is the only option to compile Bash with it hardcoded? (HowTos)

9
Bash script not parsing file with spaces in pathview story

http://www.unix.com – Hi everyone, I'm trying to write my first ever shell script, the OS is Raspbian. The code I have written must be executed whenever a certain database has been modified. The database resides on a Windows server to which I have a mount point, and I have no control over the Windows server at all so changing directory names is not an option unfortunately. (HowTos)

9
what's my ip, just another lil scriptview story

http://crunchbang.org – Nice of you to post.  The following URLs also provide plain text responses to avoid installing/using lynx:http://curlmyip.com http://icanhazip.com http://ipconfig.me/ipAnd the "-s" (silent) option will turn off curl progress/messages so you can do without redirecting stderr too.#!/bin/bash # internal ip echo -n "internal: " /sbin/ifconfig $1 | grep "inet addr" | (HowTos)

9
After Bash..view story

http://www.linuxquestions.org – I need an advice! :rolleyes: I'm at 6.33. Bash-4.2 stage (lfs 7.5).. all is ok but after "exec /bin/bash --login +h" i exit automatically from chroot to root; i can continue in this way or i need a chroot environment for next packages? chroot $LFS /tools/bin/env -i \ HOME=/root TERM=$TERM PS1='\u:\w\$ ' \ PATH=/bin:/usr/bin:/sbin:/usr/sbin \ /tools/bin/bash --login (HowTos)

9
Can you use gnome keyring in bash script, if yes then how?view story

http://askubuntu.com – I am developing a automated mounting script for Windows shares. I have finished the script and it works just fine, but is it possible to add Gnome Keyring to the bash so once user writes hes/hers password then it will be saved to Gnome Keyring and later will be taken from there. (HowTos)

9
Some puzzles of how to close file descriptors on sh or bashview story

http://unix.stackexchange.com – Question 1. What will happen if we close a input file descriptor as if it is a output file descriptor? (or vice versa). For Example, $ exec 5<&2 $ exec 5>&- In my linux box, any error does not happen on sh and bash. And POSIX seems not to say we SHOULD close input file descriptos with <-. The redirection operator: [n]<&word ... (HowTos)

9
bash: /home/user/.ssh/authorized_keys: No such file or directoryview story

http://unix.stackexchange.com – Create a ssh key: $ ssh-keygen -t rsa –P "" Moving the key to authorized key: $ cat $HOME/.ssh/id_rsa.pub >> $HOME/.ssh/authorized_keys bash: /home/user/.ssh/authorized_keys: No such file or directory (HowTos)

9
Building OpenFOAM 2.2.2 for Xeon Phiview story

http://unix.stackexchange.com – I'm trying to build OpenFOAM for Xeon Phi on CentOS 6.5 (Linux 2.6.32-431.11.2.el6.x86_64) Using these steps Install Intel Parallel Studio tar xvfz parallel_studio_xe_2013_sp1_update2.tgz cd parallel_studio_xe_2013_sp1_update2 ./install.sh Compile flex and zlib echo ' /opt/intel/bin/iccvars.sh intel64 export PATH=/opt/intel/bin:$PATH ' >> ~/.bashrc bash # zlib wget -c 'http://zlib.net/ (HowTos)

9
bash: /home/user/.ssh/authorized_keys: No such file or directoryview story

http://askubuntu.com – Create a ssh key: Command: ssh-keygen -t rsa –P "" Moving the key to authorized key: Command: cat $HOME/.ssh/id_rsa.pub >> $HOME/.ssh/authorized_keys bash: /home/user/.ssh/authorized_keys: No such file or directory (HowTos)

9
Permission denied for root to change inotify max_user_watches, how solve this?view story

http://serverfault.com – As root in a CentOs 6.4 server I got this error in an application: Fri May 16 01:45:23 2014 Error: Terminating since out of inotify watches. Consider increasing /proc/sys/fs/inotify/max_user_watches But when I try to run the command as root I got permission denied. # echo 100000 > /proc/sys/fs/inotify/max_user_watches -bash: /proc/sys/fs/inotify/max_user_watches: Permission denied Even if (HowTos)