1,817 Topics
| |
I have written a shell script below while running this script , we have to give inputs manually, now i want that we are getting inputs in excel file ..can we automate this , this was a project for me , i am alreday late ..please help me soon [code] … | |
[ICODE]while getopts htn: OPTION do case ${OPTION} in t) LIST='john mike smith' ;; n) LIST='rob peter joe' ;; h|*) show_usage exit 0 ;; esac done shift $(($OPTIND - 1)) args=$*[/ICODE] above is a snippet of code. i would like to use more than one character in my options e.g fname … | |
[CODE]$dgs = new IO::Socket::INET(LocalPort => $lisport, Proto => 'udp') or die "Socket: $!\n";[/CODE] I have a perl script that I want to run on tomato firmware router using the current shell scripting that it supports How would I do the above in shell? In perl you have to use IO:Socket. | |
hi. I'm a newbie in shell scripting as well as the *nix OS. I just wanna ask about the symbol [B]#![/B] that I saw in many shell script examples. For instance, [ICODE][B]#![/B]/bin/bash[/ICODE]. What does the [B]#![/B] symbol means? What's the meaning of [B]$1[/B], [B]$2[/B], [B]$3[/B] symbols? and what does the … | |
Hi everybody, I have a problem in include path. i want to keep my all header file in folder named myInclude and include it like #include<myInclude/header.h>, Is there any possible way to do this, if there is than please tell me the step. thanks in advance........... | |
Hello, I have lots of xml files in the same format and I need to modify a xml tag in these files. i loop over the files and apply sed to the files to make the modification but CPU goes to %100 while doing this. I think I'm doing something … | |
I'd like to write a script to identify current users on the sytem with an indication of the actions they are performing. I only want to identify the users. Can someone please help? | |
hello I basically need to automate this [url]http://www.contextmagic.com/express-clickyes/[/url] with shell script. how can i tell inside shell script to find and activate window and then sendkey {tab} tab enter .... Thanks! | |
This is the question, first I'd like to know if shell scripting could do this, if it can whats the best scripting language to use and any hints you can too. TIA. The problem I have is this I need to do a lot of search and replaces. But they … | |
Hi guys, i want how to run the batch file for particular time interval in windows thanks | |
have written a shell script in which I use fastmail to send emails from the shell script. It sends email to my company account with no problem. But I wan to send the same email to a pager number so that the pager goes off when the particular condition occurs. … | |
I have defined a variable in bash [code]$ MYDATESTAMP="2009-06-25 21:57:18"[/code] I would like to pass this to perl to perform a simple date conversion. If I enter the date manually it works. [code]$ perl -MDate::Parse -le'print str2time("2009-06-25 21:57:18");' $ 1245992238[/code] My attempts to pass the variable MYDATESTAMP into this command … | |
Hi, I had some irritation with a "while"- loop, which turned out to be endless. Anyway, i was able to find the problem and reduce it to be shown on the commandline: I "typeset" (and initialize) an array and an integer variable: [CODE]$ typeset -a arr; arr=(bourne again shell) $ … | |
Hi I am new to unix and want to learn shell scripting. Right now I am use cygwin for windows but sooner I will switch to ubantu. So when I wrote my first script (just copied from the book I was reading), I came to know I have to give … | |
Hey, I wanted to create a Body Mass Index calculator. I've already created a seperate HTML file with a form where you have to type in your weight and height. So far so good, now I want to 'transfer' the data to my cgi script (unix shell script) as soon … | |
I need write simple script,but I just started and don't know how to do this at all. And I need it before tomorrow. This is what I need. 1) Create a directory FileData and place four files into the directory. This part, I already did, but second still exist. 2) … | |
Hello, I am trying to use the awk command to print two columns. One of them has a percentage value. This is for file system monitoring. When i try to read it from a file it does not recognize the precent sign and ignores it. How can i convert it … | |
I have a script written in Korn that hangs. Please see code below and advise. TIA [code] login as: dgrin dgrin@cbdp57009's password: Last unsuccessful login: Sat Jun 13 13:06:21 CDT 2009 on ssh from dbtrsqc1.chris topherandbanks.com Last login: Tue Jun 16 21:46:51 CDT 2009 on /dev/pts/0 from dbtrsqc1.christopher andbanks.com ******************************************************************************* … | |
Hi All, I am a newbie to UNIX shell scripting. Kindly help me in below requirement i actually FTP a compressed file from UNIX to Windows server, while uncompressing the transfered file it actually contains a box character [] instead of a new line but i need it as a … | |
Hello, I am fairly new to scripting, I am interesting in writing a shell script which acts as a DOS command. I want to be able to utilize dos commands such as cd, dir, type, del, ren, and copy to do the same functions as the UNIX commands, cd, ls, … | |
Hi, i wonder if someone can help me with this, I am trying to get the results of top across multiple machines at the same time. I only care about the first process listed by 'top'. I can't figure out how to make this happen. I have got passwordless SSH, … | |
hi. Does this command (tar cvf /usr/local/bin) create a tape achieve in /usr/local and then copies all the files and directories that are in the /bin directory into the tape archive that is stored in /usr/local? If not then how does it work? I have looked around the internet and … | |
So, I had a quick question about having multiple arguments being read into a bash script. In the following script, if I type "./myscript -h", it returns "Hippo.". However, if I type "./myscript -h -k", the script returns only "Hippo." I would like to know how to have the script … | |
Hey all, Im creating a shell script that has an option to take a file to write the output into instead of displaying it on the terminal (stdout)...and then takes an arbitrary number of input files to process. Usage is something like this: $command [-option outputFile] inputFiles.... If the option … | |
Hey all, I have a dumb question to ask :(.. I want to know how to create a shell script that reads input from the STDIN as default, but when [-o inputFile] is entered as an option, it will read the input from the inputFile. I want to do this … | |
Hey all, I have a problem with using the grep command... Im trying to parse lines in a file and read only characters t,c,a,g lower or upper case...but i keep getting trouble in the outcome: for example axxxxtc should return atc but it doesnt... heres my code: result=`echo $line | … | |
Hi, I am having trouble inserting lines into a file via a Unix shell script, can anyone out there help me with this? Part of my file content looks like this: # default ssl qop [ssl-qop-mgmt-default] default = ALL I now need this part to read as follows: # default … | |
Hello, I'm brand new at shell scripts and I am attempting to complete a homework assignment but I am not quite sure what I am doing wrong here. The instructions are [B]Write a bash script that takes two arguments and generates a nicely formatted, plain-text, manual page for the command … | |
Bat file to move files onto a created subdirectory Hi, I have a folder with video files, and I want to put each one into its own folder, like this: Current: c:\videos\movie1.avi c:\videos\movie2.mpg To: c:\videos\movie1\movie1.avi c:\videos\movie2\movie2.mpg I.E. I want to create a subdirectory with the same filename (minus extension), and … | |
i am reading an i/p file input.txt as below and want to read all filenames as in highlighted in bold below and put them in a different file output.txt. can someone help me with a shell script to do this? thanks in advance regards brad input.txt --------- START TYPE:OPT INIT_SEQ:01 … |
The End.