Advertisement

1 - 10 of 28 containing alltags:("Linux Bash") (0 seconds)
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...
Zones: Linux, Linux DevDate Answered: 05/02/2008 Grade: A Views: 57
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...
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...
Zones: Linux Dev, Linux AdminDate Answered: 05/15/2008 Grade: A Views: 9
I have a shell script with the very first line being: #!/bin/sh -f What does the -f mean in this context?
Zones: Shell Scripting, bashDate Answered: 06/26/2008 Grade: A Views: 4
Hi all, I have a file on another machine. I must output its content to screen like: scp username@machine:~/somefile1.txt > screen Thanks
Zones: Linux, Linux Admin, bashDate Answered: 07/12/2008 Grade: A Views: 0
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...
Zones: Linux, bash, Shell ScriptingDate Answered: 08/01/2008 Grade: A Views: 8
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...
Zones: Shell ScriptingDate Answered: 08/12/2008 Grade: A Views: 13
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...
Zones: Linux, MySQL ServerDate Answered: 11/05/2008 Grade: A Views: 30
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 ...
Zones: bash, Linux, Linux AdminDate Answered: 11/12/2008 Grade: A Views: 23
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...
Zones: Servers, Linux Dev, Unix ...Date Answered: 05/07/2008 Grade: A Views: 35