How can I convert the below shell script text snippet to use a ternary operator. I read at http://safari.oreilly.com/0131478230/ch11lev1sec5 that Linux does support a ternary operator, but I'm hav...
http://www.experts-exchange.com/OS/Linux/Q_23371721.html
I created an called "myjobs" that list out (space seperated) all of the jobs that I have running from a particular directory. I'm trying to pass this information into the kill command, but I'm get...
http://www.experts-exchange.com/OS/Linux/Q_23380713.html
Zones:
LinuxDate Answered: 05/19/2008 Grade: A Views: 0
I have a bash script that I wrote. It works fine when I execute it from the shell. However, when I run the script via Cron it is not giving me the correct information. My curiosity is that I use...
http://www.experts-exchange.com/Programming/System/Linux/Q_23406333.html
I have a shell script with the very first line being:
#!/bin/sh -f
What does the -f mean in this context?
http://www.experts-exchange.com/Programming/Languages/Scripting/Shell/Q_23494883.html
Hi all,
I have a file on another machine. I must output its content to screen like:
scp username@machine:~/somefile1.txt > screen
Thanks
http://www.experts-exchange.com/OS/Linux/Q_23560072.html
Hi,
I am currently populating a variable with the current date as follows:
current_date=`date +%m%d%y`
How do I code this so that I get the year as 2008 rather than just 08?
Thanks much...
http://www.experts-exchange.com/OS/Linux/Q_23615046.html
Good afternoon all,
I'm hoping someone could help me fix an issue I'm having with my code. In the code below, I am trying to parse an file and run a series of SQL statements.
To do this, I...
http://www.experts-exchange.com/Programming/Languages/Scripting/Shell/Q_23623543.html
I am having trouble with using a variable in a Linux Bash:
#!/bin/bash
#
UPDATED=`20081029144522`
mysql --user=myuser --password=mypass MyDB -e "SELECT Updated FROM OrderSummary_LastUpdate WH...
http://www.experts-exchange.com/OS/Linux/Q_23872079.html
Hi
I have a back up script that runs every hour, in the script I used the date function to create a suffix for the archive created for the backup
suffix=$(date +%y%m%d.h%k%M)
The script ...
http://www.experts-exchange.com/Programming/Languages/Scripting/Shell/bash/Q-23897501-bash...
Hi,
I would like to request an assistant.
Can anybody help me to complete my bash script to detect a character in "cat /proc/mdstat" output ?
My server is using raid and if the mirror is u...
http://www.experts-exchange.com/Hardware/Servers/Q_23383555.html