Sponsored Content
Top Forums Shell Programming and Scripting Convert a script in awk script Post 74443 by Lestat on Thursday 9th of June 2005 04:23:34 PM
Old 06-09-2005
Thanx criglerj your solutions works too, but now i have a new problem, the file borrar.log have 2537051 lines and this process is taking 30 seconds, and i need this information for bein showed each 5 seconds, maximus 10... how can i do it better?
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

here-doc convert 2 script convert to single script?

I have my main script calling another script to retrive a "ls -alt" of a directory that's located in a remote location I'm sftping into. main.sh #!/bin/ksh getLS.sh > output.txt getLS.sh #!/bin/sh /home<..>/sftp <host@ip> <<! cd /some/dir/Log ls -alt quit ! Basically I'd like to be... (2 Replies)
Discussion started by: yongho
2 Replies

2. Shell Programming and Scripting

how to convert unix .ksh script to windows .batch script

I am using awk in my .ksh script but when I am trying to run in windows its not recognising awk part of the ksh script , even when I changed it to gawk it does not work, this is how my .ksh and .bat files look like. thanx. #!/bin/ksh egrep -v "Rpt 038|PM$|Parameters:|Begin |Date: |End... (1 Reply)
Discussion started by: 2.5lt V8
1 Replies

3. Shell Programming and Scripting

convert this into csv using awk/shell script

Hi Scripting gurus, I need to convert following text snippet into csv. please help Input heading1 = data1 heading2 = data2 .. .. heading n = data n heading 1 = data1 .. .. Output data1,data2,....,data n (3 Replies)
Discussion started by: azs0309
3 Replies

4. Shell Programming and Scripting

Awk script to convert csv to html

Hi Written some script to convert csv to html but could not add table headers.Below are the errors iam getting ./csv2html | more + awk -v border=1 -v width=10 -v bgcolor=black -v fgcolor=white BEGIN { printf("<table border=\"%d\" bordercolor=\"%s\" width=\"%d\"... (2 Replies)
Discussion started by: zeebala1981
2 Replies

5. Shell Programming and Scripting

Help: how to convert perl script to awk in windows2003 server environment

For the following perl script, can anyone help to convert it to awk statement in windows2003 server environment ? Code: foreach $k (sort {$a <=> $b} keys %psnum) (1 Reply)
Discussion started by: tojzz
1 Replies

6. Programming

awk script to convert a text file into csv format

hi...... thanks for allowing me to start a discussion i am collecting usb usage details of all users and convert it into csv files so that i can export it into some database.. the input text file is as follows:- USB History Dump by nabiy (c)2008 (1) --- Kingston DataTraveler 130 USB... (2 Replies)
Discussion started by: certteam
2 Replies

7. Shell Programming and Scripting

how to convert a shell script to a php script for displaying next word after pattern match

I have a shell script which I made with the help of this forum #!/bin/sh RuleNum=$1 cat bw_rules | sed 's/^.*-x //' | awk -v var=$RuleNum '$1==var {for(i=1;i<=NF;i++) {if($i=="-bwout") print $(i+3),$(i+1)}}' Basically I have a pages after pages of bandwidth rules and the script gives... (0 Replies)
Discussion started by: sb245
0 Replies

8. Shell Programming and Scripting

Help: How to convert this bash+awk script in awk script only?

This is the final first release of the dynamic menu generator for pekwm (WM). #!/bin/bash function param_val { awk "/^${1}=/{gsub(/^${1}="'/,""); print; exit}' $2 } echo "Dynamic {" for CF in `ls -c1 /usr/share/applications/*.desktop` do name=$(param_val Name $CF) ... (3 Replies)
Discussion started by: alexscript
3 Replies

9. Shell Programming and Scripting

Help with convert awk script into perl

Input file (a list of input file name with *.txt extension): campus.com_icmp_ping_alive.txt data_local_cd_httpd.txt data_local_cd.txt new_local_cd_mysql.txt new_local_cd_nagios_content.txt Desired output file: data local_cd_httpd data local_cd new local_cd_mysql new ... (9 Replies)
Discussion started by: perl_beginner
9 Replies

10. Shell Programming and Scripting

Convert XML to CSV using awk or shell script

Hello, I am working on a part of code where I need a awk or shell script to convert the given XML file to CSV or TXT file. There are multiple xml files and of different structure, so a single script is required for converting data. I did find a lot of solutions in the forum but... (16 Replies)
Discussion started by: Rashmitha
16 Replies
cmappmgr(1m)															      cmappmgr(1m)

NAME
cmappmgr - launches and monitors an application process on a node SYNOPSIS
cmappmgr -node node_name [-cmappserver_timeout number_of_seconds] -service service_name DESCRIPTION
cmappmgr launches and monitors the specified application process on a specified node. The cmappserver(1m) daemon process must be running on the specified node, and there must be a routable TCP/IP network between the specified node and the local host where cmappmgr(1m) is run. cmappmgr exits when the application process exits. Options cmappmgr supports the following options: -node node_name Name of the node on which to launch the application process. -cmappserver_timeut number_of_seconds The number of seconds that must elapse before cmappmgr times out the connection with cmappserver on the specified node. This is optional. The default value is 10 seconds. The maximum value that can be specified is 600 seconds, and the mini- mum value is 1 second. -service service_name The full command line for the application or process to be launched. Note that -service must be the last argument speci- fied for cmappmgr as all strings following the argument are considered as part of the command line to launch the applica- tion process. Quotation marks ("") are not required. RETURN VALUE
cmappmgr returns the following value upon completion: 0 Successful completion. >= 1 One or more error conditions occurred. The value generally reflects the exit code of the process. If, for any reason, the process fails to launch on the specified node (for example, because of an error connecting to cmappserver), cmappmgr exits with 1. EXAMPLES
To launch an xclock application on the node v-smp1: cmappmgr -node v-smp1 -service /usr/bin/X11/xclock -display 16:89:255:19:0.0 AUTHOR
cmappmgr was developed by HP. SEE ALSO
cmappserver(1m). Designing high-availability solutions with HP Serviceguard and HP Integrity Virtual Machines Requires Optional Serviceguard Software cmappmgr(1m)
All times are GMT -4. The time now is 07:10 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy