7
get a variable's content, from the contents of another variable, both variable names have the same trailing numberview story

http://stackoverflow.com – in a bash script, How do I get a variable's content, from the contents of another variable, both variable names have the same trailing number? IP1=192.168.0.17 DIR1=/mnt/2tb/archive/src/ IP2=192.168.0.11 DIR2=~/src/ IP3=192.168.0.113 DIR3=~/src/ #get local ip and set variable HOST to local ip HOST=$(ifconfig | grep 'inet addr:'| grep -v '127.0.0.1' | cut -d: -f2 | awk '{ print $1}') # get HOST (HowTos)

7
dmenu menu with spaces?view story

https://bbs.archlinux.org – I am trying to create a dmenu, that runs specific commands on each entry. (HowTos)

7
Cant find the php-fpm configview story

http://serverfault.com – I cant find the php-fpm config file on my server. I tried to make an php-fpm.conf file in /etc/php.d/ folder, but it doesn't get included. Its not in these locations either: /etc/php-fpm.conf file or /etc/php-fpm.d Output of php -v -bash-3.2# php -v PHP 5.4.10 (cli) (built: Dec 19 2012 11:25:26) Copyright (c) 1997-2012 The PHP Group Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies (HowTos)

7
Run optipng png optimizer on several cores - optipng_multicore.shview story

https://bbs.archlinux.org – So. It's a wrapper. I got bored when I have HEXA core on my server and I usually want to maximize (almost maximize) png optimization, but optipng as great tool it is - it lacks feature of running on multiple cores at the same time. So utilizing 1 of 6 of the cores in my case... (HowTos)

7
Unterminated string / Syntax Error with Bashview story

http://stackoverflow.com – I'm trying to get the follow code to read in variables from the user; files to search, a search string, wanted whitespace for output and the amount of fields to be output. First issue is with the AWK command. (HowTos)

7
cli interpreter jquery/phpview story

https://bbs.archlinux.org – Hi I'm looking for a way to parse out a string into a first word and switches exactly the way bash handles.  For jquery/phpLike this.command -a -b -c leftovertext | command -abc leftovertextI've looked at a javascript parser (optparse), but it's pretty outdated and I'm having trouble using a regular expression with match and each in jquery;Or if I should try doing this in (HowTos)

7
Need some tips for a bash script.view story

https://bbs.archlinux.org – does it fail if you fully qualify the ip command?  (i.e. /sbin/ip)You can always execute it from cron with a -x and send the output to a file and see exactly what is happening.  To do this, change cron to /bin/bash -x /path/to/script > /tmp/outfile 2>&1 oliver https://bbs.archlinux.org/profile.php?id=13735 2013-01-12T01:22:19Z (HowTos)

7
setting CHMOD permissions for each user for their own folderview story

http://stackoverflow.com – #!/bin/bash MasterDir="/home/darkeve/Documents/OS/master/" USERHOME="/home/darkeve/Documents/OS/UNIX" MasterFile="filenames.txt" while read -r line; do mkdir "UNIX/$line" for FILENAME in `cat $MasterFile` do cp "$MasterDir/$FILENAME" $USERHOME/$line done done < usernames.lnk chown $USER:$USER $USERHOME/$USER -R CHMDO 700 $USERHOME/$USER -R I am trying to set CHMOD 700 permis (HowTos)

7
[ubuntu] Permissions needed to connect via ssh with a remote hostview story

http://ubuntuforums.org – Hi. After creating a "standard" user (with an admin user), the standard user gets this error when trying to connect via ssh with a remote host: asdf@asdfasdf:~$ ssh remote_user_name@company_server /bin/bash: line 0: exec: connect: not found ssh_exchange_identification: Connection closed by remote host After that, I have "upgrade" the standard user to make it administ (Hardware)

7
bash: Copying files to multiple locationsview story

http://stackoverflow.com – #!/bin/bash while read -r line; do mkdir "UNIX/$line" done < usernames.lnk MasterDir="/home/darkeve/Documents/OS/master/" USERHOME="/home/darkeve/Documents/OS/UNIX" for FILENAME in `cat $MasterFile` do cp $MasterDir/$FILENAME $USERHOME/$USER done My script does the first job right, it first reads a file called "usernames" and creates individual folders for each user int (HowTos)