Sponsored Content
Full Discussion: C Exit Not Executing
Operating Systems AIX C Exit Not Executing Post 303005251 by jeffs42885 on Monday 16th of October 2017 09:02:04 AM
Old 10-16-2017
When I do an ldd against the exit itself as my own user -

Code:
 
 user@server:/dir/to/exit> ldd CustomExit
 CustomEXIT: No such file or directory

toss in sudo-

Code:
user@server:/dir/to/exit> ldd CustomExit
CustomExit/usr/lib/libcrypt.a(shr.o)
/usr/lib/libc.a(shr.o)

Code:
user@server:/dir/to/exit> echo $LD_LIBRARY_PATH
/usr/lpp/psf/bin

 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Where can I find a list of exit codes? (Exit code 64)

I'm receiving an exit code 64 in our batch scheduler (BMC product control-m) executing a PERL script on UX-HP. Can you tell me where I can find a list of exit codes and their meaning. I'm assuming the exit code is from the Unix operating system not PERL. (3 Replies)
Discussion started by: jkuchar747
3 Replies

2. Shell Programming and Scripting

bash: executing commands and reading exit vals

I have a function that returns a bunch of exit codes, say func1, and in my code I'm trying to execute that function in an if statement. This is the closest I could get. f1call=`func1 $arg1 $arg2` if ]; then ... fi When I run the script the function never gets called. What's the right way... (7 Replies)
Discussion started by: eur0dad
7 Replies

3. Programming

exit(0) versus exit(1)

What is the difference between using exit(0) and exit(1) to exit a program? Which should I use? (9 Replies)
Discussion started by: enuenu
9 Replies

4. UNIX for Dummies Questions & Answers

nohup - sub job in script not executing until I exit

My job is launched using this command: I'm at home and having VPN drops so I used nohup and background. nohup perf_mon -c rating_4_multi,cfg & The main script is PID 26119, and the sub task under it is 26118 which is not running - just sits there. 26119 runs forever but nothing else runs. I... (2 Replies)
Discussion started by: ido1957
2 Replies

5. Shell Programming and Scripting

Executing multiple processes without waiting for their exit status.

Hello Friends, Hope you are doing well. I just need a help in executing multiple processes. I've written a shell script which calls another scritps. But the problem is there are too many processes to run, and each process takes about a min to finish its execution. So, I want to just... (3 Replies)
Discussion started by: singh.chandan18
3 Replies

6. Shell Programming and Scripting

Need the difference between exit 1 & exit 7

Hi In one of the script I am seeing some thing like exit 7,exit 1,exit 2,exit 3,exit 9,exit6.What is the difference between all of this exit.Can anyone help here please (3 Replies)
Discussion started by: ginrkf
3 Replies

7. UNIX for Dummies Questions & Answers

Execute shell script and if string found while executing then exit

Hi All, I have one shell script start.sh which executes another shell script test.sh something like below :test.sh -param1 -param2 In the test.sh there is one command for removing file:rm file1.bak I want whenever I execute start.sh, it will execute test.sh and if it finds string rm... (7 Replies)
Discussion started by: ORAI
7 Replies

8. Shell Programming and Scripting

Executing 'exit' command from shell script

Hi, I am writing shell script to automate few use cases for CLI interface. We have CLI interface which has bunch of commands. I am trying to execute one of the commands 'exit' as part of automation to exit from CLI object (not from shell script) in my shell script. My intension is to execute... (4 Replies)
Discussion started by: Mahesh Desai
4 Replies

9. Shell Programming and Scripting

How to keep staying on remote server after executing a shell script with if then exit end statement?

i have a "if .. then exit end " in s shell script on remote servers. now the connection to the remote server got killed after i run this script on the remote servers. How do i run this script on remote hosts and still keep remote connections alive after executing the script. Thank you. (10 Replies)
Discussion started by: moonmonk
10 Replies
snmp_trapsnd(8) 					      System Manager's Manual						   snmp_trapsnd(8)

NAME
snmp_trapsnd - A program that sends SNMPv1 and SNMPv2 traps SYNOPSIS
/usr/sbin/snmp_trapsnd enterprise agent_addr generic specific timeticks [-v version] [-c community] [-h host] [-p port] [-tcp] [variable [type value]] OPTIONS
Specifies the type of message in which to send the PDU. The default version is SNMPv1. Use 2c to specify that the PDU be sent in an SNMPv2C message. Specifies the host name or dot-formatted IP address of the destination node to receive the trap message. If no host is specified, the trap is sent to the loopback interface. Causes a hexadecimal dump of the encoded packet to be sent to stdout. Specifies that the TCP transport be used instead of the UDP transport. If a connection cannot be established, the program silently sends the trap to the standard transport address (UDP 162). Specifies the port number on the destination host to which this message is sent. The default is 162, the well-known SNMP trap port. Specifies the community string used to send the trap. The default is public. OPERANDS
For SNMPv1 traps, this is the enterprise object identifier, in dot string notation, on whose behalf the trap is being sent (for example, 1.3.6.1.4.1.232). For SNMPv2 traps (specified with the -v 2c option), this represents the value of snmpTrapOID.0. For an SNMPv2 enterprise-specific trap, this is typically a concatenated string containing the enterprise OID, 0 (zero), and a single digit. See the generic parame- ter table. The hostname or IP address of the entity on whose behalf the trap is being generated (the agent-addr field in the V1 trap PDU). The special name local reports the host on which this program is running. This value is ignored if the -v 2c option is present. The generic trap identifier. This is a non-zero number. The following table summarizes the trap IDs: ------------------------------------------------------------------------ Description V1 generic Value V2 enterprise Value ------------------------------------------------------------------------ coldStart 0 1.3.6.1.6.3.1.1.5.1 warmStart 1 1.3.6.1.6.3.1.1.5.2 linkDown 2 1.3.6.1.6.3.1.1.5.3 linkUp 3 1.3.6.1.6.3.1.1.5.4 authenticationFailure 4 1.3.6.1.6.3.1.1.5.5 egpNeighborLoss 5 1.3.6.1.6.3.1.1.5.6 enterpriseSpecific 6 enterprise.0.x ------------------------------------------------------------------------ If the -v 2c option is present, this parameter is ignored. Specifies the enterprise-specific trap number. A value must be present, but is ignored if the -v 2c option is present or if generic is a value other than 6. Specifies the relative time associated with the generation of this trap message. This is the number of TIMETICKS (1/100 of a second) since the sending SNMP entity started. Specifies a list of MIB variables to be included in the trap message. See snmp_request(8) for information on specifiying SNMP MIB variables on the command line. DESCRIPTION
The snmp_trapsnd program encodes an SNMPv1 Trap protocol data unit (PDU) (see RFC 1215) or a SNMPv2 Trap PDU (see RFC 1905) into an SNMP message, and sends it to the specified host(s). All data fields in the trap PDU can be specified in the run-time arguments. SNMPv1 traps are uniquely identified by the combination of enterprise, generic, and specific operands. SNMPv2 traps are uniquely identi- fied by the value of snmpTrapOID.0 in the enterprise operand. RESTRICTIONS
The use of this command should be limited. SNMP traps should be sent rarely, when significant state changes occur on a managed node. SEE ALSO
Commands: snmpd(8), snmp_request(8), snmp_traprcv(8) RFC 1907, Management Information Base for Version 2 of the Simple Network Management Protocol (SNMPv2) snmp_trapsnd(8)
All times are GMT -4. The time now is 06:58 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy