1,891 Topics
| |
Hi, I am new in shell script and I road this script, but it does not give the output I want. The output show look like this: Instance on [COLOR=Red]fac1[/COLOR] [COLOR=Red]inst1 [/COLOR]instance Instance on [COLOR=Red]fac2 inst2[/COLOR] instance Instance on [COLOR=Red]fac3[/COLOR] [COLOR=Red]inst3[/COLOR] instance Here is the script: [code]INSTID="inst1 inst2 inst3" FANCID="fac1 … | |
Can any1 suggest me, how to implement the "wc" word counting utility through bash shell script, i.e how to design a script working similar to "wc" command ??? Need it desperately, with all relevant options like -l, -c, -w ... | |
Hi Guys, I'm quite new to shell scripting. I would like to create a script to the following: 1. dbf 2. Print "Filesystem" "kbytes" "used" "avail" "%used" "Mounted on" values where %used >= 80%. 3. email output to user([EMAIL="you@email.com"]you@email.com[/EMAIL]) 4. The script should run once a day via cron every … | |
Can anyone help me in implementing a program which contains a routine which is similar to getpid() in functionality, but there should not be use of getpid() in the program. Please reply as soon as possible. | |
Greetings, I am trying to create a script that does 2 things. I imagine this can be done in 2 or 3 lines. 1. ssh to a server 2. execute the passwd command here is what I am trying - ssh -l username server passwd Once the script ssh's to … | |
hi! My boss told me that the script should DISPLAY ERROR if FAILED_LOGIN_ATTEMPTS is greater than 3... HOW should I do THis? PLease talk to me like im moron, im just a beginner... or please give a sample code to do this.. thanx a lot... HERE's THE SCRIPT: export ORACLE_SID=ohkrm92 … | |
I have an options file of the following format [code] option1 = value1 option2 = value2 ..... ; variable number of options ..... page_size= pagesize1 ;Note there is no space between page_size and = page_size= pagesize2 page_size= pagesize3 [/code] During a regression test I want to extract the values for … | |
Hello everyone, I am a beginner to shell script . I had to modify the following script and i get the following errors : sag.sh[11]: SAG: not found mv: cannot create /sag_0609131449.txt :Permission denied #!/bin/ksh LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/export/home/oracle/app/oracle/product/8.1.7/lib export LD_LIBRARY_PATH export ORACLE_HOME=/export/home/oracle/app/oracle/product/8.1.7 export STOCK=/export/home/oracle/app/oracle/product/8.1.7/bin export ENT=/home/atw11w99/ent/uc5 #SAG =$SAG:/home/atw11w99/ent/uc5/sag SAG =/home/atw11w99/ent/uc5/sag export SAG … | |
Hi all, Can anyone shed some light as to why this is not working? for i in `cat wordlist.txt | dos2unix | sed -e 's/ *$//'` do sed -e 's@$i@<a href=http://www.domain.com>$i</a>@g' article.txt done I've also tried: perl -pi -e 's@$i@<a href=http://www.domain.com>$i</a>@g' $file The worlist.txt file consist of words one line … | |
I am new to scripting I want to parse a string in a loop eg A:B:C:D E:F:G:H and put them in different variable attr1 = A attr2 = B attr3 = C attr4 = D . . /* do processing with attr1, attr2, attr3 and attr4 */ then go to … | |
Greetings, Hey guys, I am trying to make a shell script that will scan for a certain 5 lines of text in a file, modify it by adding two lines in the middle and replacing that section of text in the file. For example read rc.conf for: Line1 Line2 Line3 … | |
Greetings Guys, I am currently creating a frontend for a dropable application in Mac OS, for the backend I am using sh/bash. Currently I have a for look checking to see if it a directory, however I have been unable to find a way to check and see if a … | |
Hi I am new to Linux and shell scripting. I have made a script 'script1.sh' in a directory : /root/ansh/scripts I want to invoke this script from any other directory . I understand that for doing this I'll have to set the path of the script in some global variable. … | |
Hi!, I'm kinda new to shell scripting, Here's a problem that I have faced and dunno how to solve: First, I want my script to rename the files stored in a .txt file line by line(there's no pattern that I can use with mv, so I want mv to deal … | |
| Is it possible to retrieve text from an application whose widget handles are unknown? I guess this leads to another question, is it possible to get the widget handles of an application if the only information is the obvious stuff (in the window's title bar)? The user needs to fill … |
Hi im new to all this but need help. i have a program that runs in the terminal of redhat 9 "./signalp -t gram+ etc" and this produces an output file called output.txt i need a script that will run the command line automatically after the last one finishes and … | |
Hello, We have about 430 Linux boxes all over our building, and a single box that we use to ssh in the rest of the boxes (when you ssh from this box no password is required because the keys are on this box). Anyways, my boss asked me to change … | |
Ok. This has got to be easy, but I can't get something right. I'm just trying to find a way to enter a few characters (example: cd1) and have it change my current directory. In other words, I'm at root and I want to type cd1 and have it be … | |
hi, i am having two files n.sh here i wrote code like clear f() { echo "this is my program to test function" } again i am having one more file n1.sh here i wrote like this ./home/selvam (this is my program directory (ie.. actual n.sh file is in this … | |
Hi All, I want to know if there is any way to exit from both the parent and child loop simultaneously without adding any kind of conditional statement. ******************************************************** [COLOR=sandybrown][B]#!bin/ksh a=5 if[[ $a -gt 5 ]] then echo "a=5 and not went to else cdn." else if [[ $a==5 ]] … | |
Hello, I trieng to login to a remote machine, but if I login, and ran command [I]who am i[/I] [I]root ttyp0 Jul 31 06:27 (192.168.1.12)[/I] The problem is why it is showing the IP address, which we usually notice in connecting to a machine which is connected locally (LAN). I … | |
Hey everyone, I'm a student at a local community college and working on my last project for the summer. I've been working on this script for the last two days and cannot figure out what I'm doing wrong here. Hoping that some of you might be able to figure out … | |
hi, if any one give me a code for this output if i give input 4 means i want this output * * * * * * * * * * actually i am not familier with for loop in shell script . so that i ask this help to … | |
I have an index.html file that I need to be able to modify depending on if its secure or unsecure, can I use cat and or grep in a script to modify text in it? Chris | |
I am using for f in $(<uploads); do s=`echo "$PWD/$f"`; to output the path for each file in a text file. It works great However I need the relative path to start with a specified directory. In other words the top of the script will have a few questions two … | |
My script is giving above mentioned error .... is there any workaround [CODE] #!/bin/sh #################################################################### # Createion Date: 21-Jul-2006 # Modification Date: # Version: 1.0 #################################################################### ############################################################## # Check the parameter ############################################################## if [ "${#}" -lt 5 -o "${#}" -gt 5 ] then echo "Usage for this script is : … | |
Hello I have a couple of interlaced images taken from a video stream and I want to do deinterlasing. Unfortunately I don’t have the video. Someone told me that there is a command in Unix that can do this. I would be grateful if you could help me. Thanks, | |
Hi all, I'm trying to "echo" some informations in a while loop, in ksh script. I want to quit, if the user enter some key... Can anyone help me accomplish this task? Thanks | |
Hi, I will try to brief as I know some of you will probably see what im trying to do.. What I am trying to do is have the IP address of the machine compare its IP to the IP that is on the server. I am trying to get … | |
Is there any way to view or access javascript portions of a web page from the linux shell? For example, I use curl to pull a web page that has text and javascript. The javascript portion does not show up, just the filename as it is in the source. |
The End.