Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: smithia6
  • Content: Threads
  • Order by date
  1. smithia6

    Export as CSV

    Hi guys I am no VB expert at all so I am in desperate need of help please. Does anyone have some code I can cut and past for the following:- I have a excel spreadsheet with 2 worksheets. I have a button in one of the sheets and what I want to happen is once this button is clicked I want it to...
  2. smithia6

    add 0 to empty line

    Last question of the day folks. I have the script running nice now where it adds up lines of data, however some lines of data look like this. 3.2 1.1 0.5 0.2 0.2 0.2 0.1 Notice some of the lines have no data what I need to do is to add a 0 to the empty lines, how can I do this?? Regards Ian
  3. smithia6

    Read file and add the data

    Hello. I have a file that looks like this below. 3.2 1.1 0.5 0.2 0.2 0.2 0.1 0.1 0.1 0.1 0.1 0.1 0.1 0.1 I wander if anyone has a way to read this line by line and add up the totals and send it to another file. This file can have as many as 100 lines and as little as 4 so I never know how...
  4. smithia6

    cron errors running script every 5 mins

    Hi I am trying to set up cron jobs on a Sun Solaris 8 server and getting nothing but errors back. I want my 2 scripts to run every 5 mins. I have tried this:- */5 05-22 * * 1-5 /export/home/smithia6/myscript1.sh and I get this :- crontab: error on previous line; unexpected character found in...
  5. smithia6

    Driving me MAD!!!!! help

    Please does anyone know the answer to a simple problem. I have a file with mabey 350 lins of data a day, the lines of data look like the below. 113M,583M,78 All I want to do is to look at this file called data.csv and remove the M so it will look like this... 113,583,78 Regards Ian
  6. smithia6

    Unix Monitoring

    Hi. I am wondering if anyone can help please. Does anyone have a script or can start me off on the right tracks to create a script that can be ran every 60 seconds on a sun solaris 8 server that will report back the CPU usage, memory usage and disk traffic usage and append the 3 figures to a...
  7. smithia6

    Sorting files names and moving.

    Hi I am just about to write a script but I need a little help to get me started. I have a directory with txt files and the files names have different names at the start but they all have one thing in common, that they have a creation date in the file name E.G file1_20031115.dat...
  8. smithia6

    <b>A quick teaser with tr</b>

    Hi, Maybe it cannot be done but I would like any help I am offered. I have text appending to a text file like the example below. text1 text2 text3 text4 etc.... What I would like to do is run a script to change the white spaces so the text in the text file would look like this...
  9. smithia6

    ps -ef for a process append to 3 logs !!

    Hi I am trying my best to work it out but I now need help please. I am looking for a process called runmqchi, using:- ps -ef |grep runmqchi |grep -v grep I need the script to echo out a line of text to 3 .log files if the process cannot be found, but to do nothing if it can find the process...
  10. smithia6

    Exit a function half way through but not the script

    Hi I have created a script in Thread822-422199 and also added in a new option to exit from this back to the main menu, it goes back ok and I can select a different update item but once that has done and goes back to the main menu it will not quit as it loops once and then quits. Also the count...
  11. smithia6

    menu script help

    I have created a menu script I have created to update a monitoring screen that is viewed in another office by a team, but I am sure this script can be improved on, as it is a little messy, and I can not get it to correctly exit out if a function is called on and then and incorrect keystroke is...
  12. smithia6

    Help with functions

    Hello I wonder if someone could help me with a korn script. I am new to Unix Shell scripting and have only been doing it for about a week. I want to tidy up a menu script and looking at functions. Could anyone give me any pointers. regards Ian. #!/bin/ksh # Set system variables...

Part and Inventory Search

Back
Top