Just getting into the Unix command line programming and am unable to run any program I write. I am using a Makefile and the source is compiling but when I enter the name of the output file I get back:
bash: lab01exe.out: command not found
I'm sure I am just dooing something simple... (2 Replies)
How can I make a program run automatically at a certain time of day?
My problem is I need to make a small backup program that will back up a few files every day? (3 Replies)
This is not a question, but rather a simple how-to for
programmers who are new to the UNIX environment.
I too,am new to UNIX.
First I developed a few programs on my box and perfected them
until they were satisfactory for execution.
Problem was however, that once i compiled and all that,... (2 Replies)
Hi.Iam new to Linux.i got linux 7.0 pro and dont know how to run programs. I want a perl interputer and i know i installed one but how do i run it ??? Also how do i run a C or C++ editor ?and how do i run cron ? (3 Replies)
Hi there! I tried to search for something like this here but couldn't find anything. I need to run a specific program when linux starts up. I need to run it after the rp-pppoe has started because this prog needs internet connection.
I start the program by entering ./dynix start (its in my home... (4 Replies)
hi ,
i need to run a parallel program .
for example;
program1
{
array=" the second program should called here : program 2"
the execution should continue
}
the 2nd program should recieve an array of information as argument and it should... (4 Replies)
Lets get some stuff out of the way before the question. I am currently running FreeBSD 7.0 on a VirtualBox virtual machine. I do not know much about Unix or FreeBSD, though I do run linux at home. My boss gave me some files that he says are a unix version of the program Dynflow. The Programs... (0 Replies)
I have a program which I can run on the command line like below and works fine
/nethome/chrisd/HSeis/TommyCD/TommyCD-1101/bin/raytrac vmod=npt10-z30.vmod srfile=jcdint.sc rcfile=jcdint.rc phases="SP FS" level=twop format="X T" dtau=0.1 mdacc=0.5 mindist=0.1 maxitertp=25 ray=npt10-z30.ry... (0 Replies)
I want to run a C program from my BASH script. Here's some very basic simplified code of my bash script:
#!/bin/bash
echo "Run C program"
./main.c
echo "Ran C program"
Here's my main.c:
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv)
{
... (3 Replies)
Discussion started by: millsy5
3 Replies
LEARN ABOUT PHP
snmp2_walk
SNMP2_WALK(3) 1 SNMP2_WALK(3)snmp2_walk - Fetch all theSNMPobjects from an agentSYNOPSIS
array snmp2_walk (string $host, string $community, string $object_id, [string $timeout = 1000000], [string $retries = 5])
DESCRIPTION snmp2_walk(3) function is used to read all the values from an SNMP agent specified by the $hostname.
PARAMETERS
o $host
- The SNMP agent (server).
o $community
- The read community.
o $object_id
- If NULL, $object_id is taken as the root of the SNMP objects tree and all objects under that tree are returned as an array. If
$object_id is specified, all the SNMP objects below that $object_id are returned.
o $timeout
- The number of microseconds until the first timeout.
o $retries
- The number of times to retry if timeouts occur.
RETURN VALUES
Returns an array of SNMP object values starting from the $object_id as root or FALSE on error.
EXAMPLES
Example #1
snm2_pwalk(3) Example
<?php
$a = snmp2_walk("127.0.0.1", "public", "");
foreach ($a as $val) {
echo "$val
";
}
?>
Above function call would return all the SNMP objects from the SNMP agent running on localhost. One can step through the values with a
loop
SEE ALSO snmp2_real_walk(3).
PHP Documentation Group SNMP2_WALK(3)