Showcase your knowledge about Apple's newest OS. Write a how-to or share a tip or trick about Snow Leopard and earn unlimited points!

 

Having problems asking a question? Have a general question about Experts Exchange? Let us know!

 
Time Tested sh Solutions: 1 - 25 of 65
 
Hi, I am writing a shell script which will input a string parameter. Inside the script I will do different action depending on the string value. I wrote myscript: if [ $1 == "test1" ] t...
Hi - I have the following script, it appears though that when I pipe the output from do_countdown through any kind of stream filter - sed, grep, tr ..etc, and then through tee that the output ...
Hi , I want to a text file from a shell script that contains free text that i define inside the .sh script. any simple way ?
Hi Experts, I am new to Unix.  In shell script, just trying to read first line of a  file, and store it in a variable.  set temp =  `head -1  /test/temp.txt`  echo $temp But it is not w...
Hi Experts,  Have a dumb question, i have the following script which loops through a file and takes the word in each line of that file and does a grep on a different file, however instead of...
hi, I need to write a shell script which gcc compiles my server / client app (server.c and client.c) and then runs them in separate terminal windows.  how can i spawn these new terminal win...
Hello. I've already searched, but found nothing... I need a script that checks if remote file exists. Everything that I've found only relates to one particular file. I need to check if t...
I need a one-line command to add or subtract seconds or hours from a date.  I have the pieces but I can't put them together in a one-line command.  I have to build this command on the fly in m...
I am trying to upload some data into a file on my AS400 through the following command RetVal = Shell("FTP -s:" & """" & ThisWorkbook.Path & "\" & "ftpPUTMPS.txt" & """", vbNormalFocus) The f...
I am analyzing some scripts, and struck at this [ -n "$1" ] && AMGDIR=$1 I know that -n used to check if length of string is non-zero, my doubt/question is what it is checking now. Any ide...
Hello, we are trying to 1. open a putty instance. 2. loging using credentials 3. execute a shell script. We see junk characters when the command is being passed. Please help. Here is the ...
I'm a Unix noob.  I need to rename all the files in a directory by adding a suffix.  This script will run on Fedora Remix running on an XO netbook from the OLPC foundation.  I think it runs th...
hi i have been using solaris for the first time i want to run the xampp but when i click on the sh file it doesnt let me run it it asks for associated file i dont know how to run sh file in t...
Hi all, Shell script noob alert! I copied the code below from another site, and made a small modificiation to it - specifically the addition of the date variable.  But now it's not worki...
Hi, In one of scripts I am looking at there is an output being directed to a file the notation is like this grep -v xyz > file1.$$ and then later on they are deleting file1.$$ (that's so...
We need to write a bourne shell script to call a different command on different days of the week and dates of the month. Example; IF date of month = 14 THEN ELSE IF day of week = 1 (Mond...
Hello, I'm new to shell scripting, but so far I love it :-) here is my question I want to find a way to read (or/and change if needed) a value from a config files (mostly will be loca...
how to kill the process using shell script
Hi guys, I have a shell script written to tail out some files. In the function main() if ELSE clause I have exit however this seems to break out of if not while and I still end up ...
Please help me create a script to modify the password of a user having an account to 100 servers. We are using trusted account relationship in HPUX and we are using ssh to login to each servers.
I'm trying to create a sh shell script that will either depending on whether what option is added empty -e should delete everything in the directory empty -a should iterate through the files...
I want to append the date to a file created in a Unix Shell Script example  release.dmp101408  created from an oracle export
Hello, I am trying to attach a time to the file that is being gzip'ed, I am just not sure how to. I have tried to explore using the date command and then try and only display the current ti...
Hi, I am new to Putty and need to be able to connect to my database to reboot. Can you tell the syntax for connecting to the database? I have putty set up so I can log into the box. Thanks.
I'm looking for a bash script that will test if a set of ports are open from a given machine.  Currently I do this manually by telneting to the port, but I can't figure out how to loop this in...