9
Question regarding file upload to a server (using a web-browser)view story

http://www.linuxquestions.org – Hi, I'm trying to set up a simple file upload page, using httpd and cgi-bin. Basically, what I'm missing is a way to “grab” the variable name (for lack of a better term), of the uploaded file. I'm using a bash based cgi script. (HowTos)

9
mounted file system with C program does not recognized by dfview story

http://www.linuxquestions.org – Hi I wrote a simple program to mount a flash disk with a C language in Linux. the program works fine but mounted filesystem does not shown with df -a command in bash. this is my mount function call in my program : Code: if (mount(SysFlag.BlkDevPath,SQLITE_DEVLOG_BASE_IN_TMPFS,"vfat",MS_SYNCHRONOUS,"")==0) what is wrong with it ? (HowTos)

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)