04-29-2011
Beautiful. Thank you both & special thanks to ddreggors for the wonderful explanation.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
my perl script is calling another external java program. The Java in turn prints out a string. how can I capture the string.
------------------
#!/usr/bin/perl
print "Content-type:text/html\n\n";
use CGI;
$query = new CGI;
$theCookie = $query->cookie('someCookie');
$user =... (0 Replies)
Discussion started by: azmathshaikh
0 Replies
2. AIX
hello
I need for a script to capture the ip address from the connected user.
I have 5 logical partitions.
With "who", i have the ip adress, but only for 2 servers.
Do you know another command to know the ip address of connected clients ?
thank you (14 Replies)
Discussion started by: pascalbout
14 Replies
3. Shell Programming and Scripting
I'm trying to capture the files that this command types out, but i'm not able to do it. I'm pipeing everything to the telnet command because if i dont the connection closes. Any suggestions.
#!/bin/ksh
hostn='x.x.x.xx xxxx'
(echo "open $hostn\r"
sleep 3
echo " \r"
sleep 2
(echo... (3 Replies)
Discussion started by: wisher115
3 Replies
4. Shell Programming and Scripting
I am trying to capture the file name(which is not of fixed length) and put it in a variable. It is working in unix whereas when I am running the same script in Informatica it is not giving me the desired output. But when I comment the option(find the file name) then it is working fine. It can... (4 Replies)
Discussion started by: Mandab
4 Replies
5. Shell Programming and Scripting
Hi,
I am new to unix.
I have a file with records like the below
ads-sap-4.txt: </a></b></span><span class="linkbutton yellow_but"><a id="2005754_more" style="cursor:pointer; cursor:hand;"... (3 Replies)
Discussion started by: akondeti
3 Replies
6. Shell Programming and Scripting
Guys I need your help...
I receive the month and the day in a file and I keep it in a variable. I need to take this day that Iīve kept compare with the current day and pick the file to the next day...
Letīs say I receive a file 27-JUL-2007 and I need to check in the system the current day and... (2 Replies)
Discussion started by: Rafael.Buria
2 Replies
7. Shell Programming and Scripting
Hi
In my production server some user runnig some scripts
to get some data.
I need a script to capture this user script code.
best rds
ab (5 Replies)
Discussion started by: aboorkuma
5 Replies
8. Programming
Hi,
I want to know the os name via c/c++ source code.so please help me to do the same.
I will appreciate if anyone can provide me the source code.
Thanks in advance.. (9 Replies)
Discussion started by: smartgupta
9 Replies
9. Shell Programming and Scripting
Hi
I am having hard time getting this right and need some help. I Have 3 files, and everyone contains the following:-
File1
Today, we have Name(Jack) Age(19) Class (A2)
Today, we have Name(Kim) Class (G9)
File2
Today, we have Name(Lee) Age(19) Class (A2)
Today, we have... (8 Replies)
Discussion started by: samsan
8 Replies
10. Shell Programming and Scripting
Hi,
I'm not real familiar with sed, but I need to capture the year this directory path. Here's what I have so far. I'm able to capture the run name, but I want the only the year that's within the run name. How can I do this?
... (3 Replies)
Discussion started by: jdilts
3 Replies
LEARN ABOUT DEBIAN
explain_time_or_die
explain_time_or_die(3) Library Functions Manual explain_time_or_die(3)
NAME
explain_time_or_die - get time in seconds and report errors
SYNOPSIS
#include <libexplain/time.h>
time_t explain_time_or_die(time_t *t);
time_t explain_time_on_error(time_t *t);
DESCRIPTION
The explain_time_or_die function is used to call the time(2) system call. On failure an explanation will be printed to stderr, obtained
from the explain_time(3) function, and then the process terminates by calling exit(EXIT_FAILURE).
The explain_time_on_error function is used to call the time(2) system call. On failure an explanation will be printed to stderr, obtained
from the explain_time(3) function, but still returns to the caller.
t The t, exactly as to be passed to the time(2) system call.
RETURN VALUE
The explain_time_or_die function only returns on success, see time(2) for more information. On failure, prints an explanation and exits, it
does not return.
The explain_time_on_error function always returns the value return by the wrapped time(2) system call.
EXAMPLE
The explain_time_or_die function is intended to be used in a fashion similar to the following example:
time_t result = explain_time_or_die(t);
SEE ALSO
time(2) get time in seconds
explain_time(3)
explain time(2) errors
exit(2) terminate the calling process
COPYRIGHT
libexplain version 0.52
Copyright (C) 2009 Peter Miller
explain_time_or_die(3)