1,817 Topics

Member Avatar for
Member Avatar for mattlock73

Hey all. Thanks in advance for any help you can give, hopefully this is an easy one. I want to create a loop to run a simple performance monitor like vmstat and record it to a file, but have very limited scripting skills. Starting with this... date >> /var/log/perfmon.log vmstat …

Member Avatar for mattlock73
0
141
Member Avatar for wandererman

I need help to write a simple shell script due for tomorrow. this is the question.. Create a UNIx script to use the following file as input. ------start of file----- Geore Washingon Bill Clinton Abe Lincoln -----End of File----- OUTPUT: lAST NAME ONLY IN SORTED ORDER. It is my first …

Member Avatar for masijade
0
93
Member Avatar for deft

I need to do something I'm told that is relatively easy to do, but I can't find specific instructions on how to do it. I need a way to look at incoming emails and run commands based on key words in them. For example, incoming email: Subject: Thing# 123 Body: …

Member Avatar for TKSS
0
109
Member Avatar for ahan

Hi, I have to manipulate a data file which say reads like this {$index $value $error_on_value} aa 4.56 0.7 bb 123.456 0.00987 cc 987654 321 . . in easily human readable format of type aa 4.6(7) bb 123.456(1) cc 9.877(3)e+05 value rounded to 4.6 with error of 0.7 on the …

Member Avatar for abhinav_shah
0
229
Member Avatar for TERRORISTsam

hi probably a noob qustion but this is my first attempt at shell scripting. im trying to open a file in a new window that the user types the name of during the run time of the script. i have tryed several different ways of doing this including. read >> …

Member Avatar for masijade
0
93
Member Avatar for gatormike53

May be in wrong forum but I did work out the lookup problem, what I am still having problems with is making sure the lookup can find the address book file regardless of the current working directory. I believe I need to do this with $PATH but am unclear on …

Member Avatar for ranj@chn
0
154
Member Avatar for gatormike53

New to Linux and need the credit for my class to ensure a good grade but not sure on the cmd line to finish I have created a data file called ".addr_book" in home directory plus a 'bin" directory . NOW this is what I am unsure of I need …

Member Avatar for ranj@chn
0
219
Member Avatar for problems

[COLOR=black]i would like to find files that have been modified during a month. lets say i am type in 2004 06 it will find files in the month of june. i know using l -la lista all the files and thier attrbutes. and one of thier attributtes is last modified …

Member Avatar for ranj@chn
0
87
Member Avatar for rockwell

Hi all, i am new to shell scripting and know very few basics, i have a shell script program written by some other guy and i am trying to understand it. I am unable to understand a few parts of the program, hope some one cud help me with this …

Member Avatar for kamitsin
0
208
Member Avatar for elidio

Hello, good afternoon. Im a newby user writing my first shell script, and i trying to make it run with the cron utility. If i run this code manually, the code was sucefull runned, but, when i put in this task in the crontab, the mail dont cant sended. When …

Member Avatar for elidio
0
467
Member Avatar for Sona

I have an input file coming, based on what is there in the starting from the third character (which is the table name starting from 3rd character in the first line).I have to set the parameter x. like If the table name='employee'(sarted from the third character) then x=1 if table …

Member Avatar for Sona
0
101
Member Avatar for garric

Hello, When mail command is used to read mails.... after 1 msg is viewed, a prompt is displayed for [B]user input[/B] ...for eg 'n' - to move to the next msg 'd' - to delete the msg just read ...etc how can i include this feature in a [B]shell script[/B] …

0
67
Member Avatar for problems

i am having a problem with writing a shell script to back up files for a specific month. the month and year are specified as paramters. so a backup of all the files modified during the specified month have to be made. for example if specify 200406 as my parameter, …

0
78
Member Avatar for virgilpal

This problem is making me alot of problem : A C program is given. Determine, for each global variable, the number of occurences and the number of lines where it is used by refference. I accept any help. Thanks

Member Avatar for virgilpal
0
144
Member Avatar for garric

The MAIL command requires the user to press the 'Enter' key or 'n' to move onto the next message once the present message has been viewed. How do I achieve this in a shell script in order to automate the copying of successive mails onto different files. Can sumone please …

0
96
Member Avatar for iamafreak
Member Avatar for garric

i wanted to write a shell script that can automatically read unread mails and copy each one into a different file. I was trying to use the MAIL command to do it, but this command requires user input inbetween, I was wondering how that could be achieved in a shell …

0
60
Member Avatar for pulluru

This is what i have in a file sortdata IGOT C9.1.20.2DBSU10 - - CVGRETesting C9.1.20.2DBSU11 - - BalInqMail C9.1.20.2DBSU11 - - SecScore C9.1.20.2DBSU8 - - IGOT C9.1.20.2DBSU8 - - IGOT C9.1.20.2DBSU9 - - SecScore C9.1.20.2DBSU9 - - When i Sort i am getting BalInqMail C9.1.20.2[B]DBSU11[/B] - - CVGRETesting C9.1.20.2[B]DBSU11[/B] - …

Member Avatar for kenisand
0
104
Member Avatar for jlbovo

Hello, i stumbled across this forums on google.com. I hope someone can provide helps for my questions. I have a freind who runs a t-shirt business, and i did him the favor of returing a favor and wrote a script for him to roganzie his accounts based on date searching. …

Member Avatar for masijade
0
113
Member Avatar for ljegal

I have a shell script, /path/adir/script1.sh, that calls another script, /path/bdir/script2.sh. Now, I am in the directory /path/cdir/, and I call the first script like this: ../adir/script1.sh The problem is that script2.sh cannot be found. In fact, even if script2.sh is in the same directory as script1.sh, the same problem …

Member Avatar for datrinite
0
151
Member Avatar for jasminemary

Hi I am assigning some values like this in my script. [PHP]server1=admin server2=managed server3=managed1 count=3 while i in $count[/PHP] With in while i like to get the admin, Managed and Managed1 values. What i did is [PHP]val=server$i echo $val (it prints server1 with in loop, but i like to get …

Member Avatar for masijade
0
125
Member Avatar for SurendraNath

By default , Array subscript value taking the range upto 4096. But i need to use for 50,000 . Please provide the help for the same

Member Avatar for SurendraNath
0
104
Member Avatar for anwarsait

Hi all, I need shell script manual for db2. if anyone have the pdf documents, please do send across to me. i will be very much thankful. regards

0
73
Member Avatar for jasminemary

Hi I know the cut option which is used to cut the column from [B]file[/B]. I like to get the filename only when it is being stored in the variable with the extension attached to. file=jasmine.txt I like to fetch jasmine(file name only). I am newbie to shell scripting. Please …

Member Avatar for jasminemary
0
95
Member Avatar for dvr

does anyone know if Dynamic C is the same as visual c+? also I am trying to find or make a simple program of a time clock like this for controlling outside lights. [IMG]timeclock.jpg[/IMG] does anyone know where to find a site for help on this?

0
59
Member Avatar for kriezo

Hi there, I have a problem here that involves bash script since I was noob in that field. Recently, I have to monitor data involve in logs so I just run command tail –f for the monitoring. The logs was generate every hour so I need to quickly change my …

Member Avatar for masijade
0
145
Member Avatar for jasminemary

Hi all, I like to moitor the database server from application server.I like to check tha particular server fo this DataBaseis up and runnig. I could do it in Java( JDBC program). But the difficulty is when i am spreading this program across all servers, i need to modify the …

Member Avatar for jasminemary
0
88
Member Avatar for anwarsait

Hi all, Im executing db2 export command using shell script. I want to check for error status in the script. if db2 command fails due to some sql error, shell script should log error msg and the script should not run further. i would like to know shell script command …

0
56
Member Avatar for craju45

>file this redirects the output into a file. but if the out of the line is more then, the extra length will not be visible in the 'file'. so to see the extra lenth of a line in a new line u give >file 2>&1 ex:- >file this is outp …

Member Avatar for masijade
0
89
Member Avatar for dannyfang

Hi, I have a script which is to perform the following task: 1) check for files in a particular directory. 2) The directory should contain 4 files in the form of: <OSSInstance>_<OSSName>_BSC<Nokia BSC ID>.<counter no>.<YYYYMMDDHHMM>.<gid> whereby: OSSInstance - a combination of alphanumeric characters OSSName -a combination of alphanumeric characters Nokia …

0
77

The End.