Sponsored Content
Top Forums UNIX for Dummies Questions & Answers a system call for sed in a awk script Post 72319 by vgersh99 on Friday 20th of May 2005 07:29:49 AM
Old 05-20-2005
gsub("ID-INTERNAL[^-]", "1")
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

how to differentiate system call from library call

Hi, Ho do I differentiate system call from library call? for example if I am using chmod , how do I find out if it is a system call or library call? Thanks Muru (2 Replies)
Discussion started by: muru
2 Replies

2. Shell Programming and Scripting

How to call last 14 characters with grep/sed in shell script.

Hi. This is my first post on the forums. I am trying to write a script that will parse a folder of files "oneverylongfilenamexyz.pdf" and create a .dat file named "oneverylongfilenamexyz.dat" with the first line of each .dat file saying variable="xyz" where xyz is the last 14 characters of $i... (4 Replies)
Discussion started by: attonbitusira
4 Replies

3. Shell Programming and Scripting

Passing argument to system call in awk script

So, I have this script. It reads a CSV file that has a mixture of object names with IP addresses (parsing out that part I have working), and object names which have a DNS name. I want to be able to run a "dig +short" based off of the name given to me in the line of the awk script, and then deal... (6 Replies)
Discussion started by: mikesimone
6 Replies

4. Shell Programming and Scripting

Running a script in system() call and want the script's output

Hi All, I have a script(sample.sh) displaying the output of "dd" command. Now i am using this script in system() call as, system("sh sample.sh") in an application file. I want the output of system("sh sample.sh") in the application file itself. How can i get it? Many thnaks.... (9 Replies)
Discussion started by: amio
9 Replies

5. Shell Programming and Scripting

System call using awk on Solaris

I'm brand new to awk and need your help. I want to be able to shut down my workstations when they become to hot (because we've lost our cooling). I found a really neat way to monitor the temperature of the system and a short, simple awk scipt to use with it: /usr/sbin/prtpicl -v -c... (2 Replies)
Discussion started by: natural
2 Replies

6. Shell Programming and Scripting

How to call the System command twice in the same perl script...

Hello experts, I have a perl script which looks for the ARGV and then loads the data as per it. Example. #Checking the server to connect if ($ARGV eq 'QA') { $ENV{"ORACLE_HOME"} = "/oracle/product/11.2.0"; $ENV{"PATH"} = "$ENV{'PATH'}:/oracle/product/11.2.0/bin"; ... (1 Reply)
Discussion started by: msrahman
1 Replies

7. Shell Programming and Scripting

Shell script to call Oracle archive backup script when file system reaches threshold value

Hello All, I need immediate help in creating shell script to call archivebkup.ksh script when archive file system capacity reaches threshold value or 60% Need to identify the unique file system that reaches threshold value. ex: capacity ... (4 Replies)
Discussion started by: sasikanthdba
4 Replies

8. Shell Programming and Scripting

Call awk script

The below awk script (loop.awk) is in the cygwin home directory. I do a cd to the directory where the Sources.txt is (where I would like the data output in), but the script does not run: echo loop | ./loop.awk loop.awk #!/bin/awk -f BEGIN {} cat Sources.txt | while read a do... (10 Replies)
Discussion started by: cmccabe
10 Replies

9. Shell Programming and Scripting

awk script to call another script based on second column entry

Hi I have a text file (Input.txt) with two column entries separated by tab as given below: aaa str1 bbb str2 cccccc str3 dddd str4 eee str3 ssss str2 sdf str3 hhh str1 fff str2 ccc str3 ..... ..... ..... (1 Reply)
Discussion started by: my_Perl
1 Replies

10. Shell Programming and Scripting

Using sed inside system call in awk

HI , I am trying to write a code where if a file system has / at the end then replace it with null but it should not affect root file system / for example if ip is /var/opt/home/ then o/p is /var/opt/home but if ip is / then it should remain /. for this i am using below code but no success... (8 Replies)
Discussion started by: Jcpratap
8 Replies
netsnmp_monitor_callback_header_s(3)				     net-snmp				      netsnmp_monitor_callback_header_s(3)

NAME
netsnmp_monitor_callback_header_s - callback header SYNOPSIS
#include <object_monitor.h> Data Fields unsigned int event callback type netsnmp_index monitored_object registered oid int priority priority void * watcher_data pointer given by watcher at registration void * object_info pointer passed from the monitored object struct netsnmp_monitor_callback_header_s * private DO NOT USE, INTERNAL USE ONLY. int refs Detailed Description callback header Definition at line 64 of file object_monitor.h. Field Documentation unsigned int netsnmp_monitor_callback_header_s::event callback type Definition at line 67 of file object_monitor.h. netsnmp_index netsnmp_monitor_callback_header_s::monitored_object registered oid Definition at line 70 of file object_monitor.h. void* netsnmp_monitor_callback_header_s::object_info pointer passed from the monitored object Definition at line 79 of file object_monitor.h. int netsnmp_monitor_callback_header_s::priority priority Definition at line 73 of file object_monitor.h. struct netsnmp_monitor_callback_header_s* netsnmp_monitor_callback_header_s::private [read] DO NOT USE, INTERNAL USE ONLY. Definition at line 82 of file object_monitor.h. void* netsnmp_monitor_callback_header_s::watcher_data pointer given by watcher at registration Definition at line 76 of file object_monitor.h. Author Generated automatically by Doxygen for net-snmp from the source code. Version 5.5 23 Sep 2009 netsnmp_monitor_callback_header_s(3)
All times are GMT -4. The time now is 07:11 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy