09-22-2005
Does the file ping.com exist before the program opens it? Maybye it's a named pipe...
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello all,
How do I start a background process and save the process id to a file on my system. For example %wait 5 & will execute and print the process id. I can't figure out how to get it to a file. I've tried: > filename 0>filename 1>filename.
Any assistance is most appreciated.
Thanks,
Jim... (10 Replies)
Discussion started by: jleavitt
10 Replies
2. Programming
I have made a shell that accept a command and parameters. It is working properly. I have tryed to implement background process in main(). But i dont know to implement them. Can anyone give me a lille example??
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
/* The following... (3 Replies)
Discussion started by: badshah
3 Replies
3. Shell Programming and Scripting
Hello Friends,
sorry, i am not very familiar with Unix programming. Could you please help me on this?
We have to start different components from a startup script.
each components are started as below in the background in a startprocess function
$nohup $file $args >>$logFile 2>&1 &
... (0 Replies)
Discussion started by: alvinbush
0 Replies
4. Solaris
Hello Friends,
sorry, i am not very familiar with Unix programming. Could you please help me on this?
We have to start different components from a startup script.
each components are started as below in the background in a startprocess function
$nohup $file $args >>$logFile 2>&1 &
... (1 Reply)
Discussion started by: alvinbush
1 Replies
5. Linux
Hi folks :)
Can deamonized process access to stderr, stdout?
I 'm trying to display error_num/return value of a function run() in stderr using
fprintf(stderr, "function run() returns = %d", ret_val);
run() is called after deamonizing the process. (1 Reply)
Discussion started by: katty
1 Replies
6. Shell Programming and Scripting
How to create a backgrond processes ? (5 Replies)
Discussion started by: anupdas
5 Replies
7. Shell Programming and Scripting
Hi there,
I was wondering if it was possible to pipe stderr to another process.
I need to eval commands given as arguments and I would like to redirect stderr to another process.
I can redirect stderr to a file like this...
toto:~$ command="one=1"
toto:~$ eval $command 2> error
toto:~$... (5 Replies)
Discussion started by: chebarbudo
5 Replies
8. UNIX for Dummies Questions & Answers
What I need to learn is how to use a script that launches background processes, and then kills those processes as needed.
The script successfully launches the script. But how do I check to see if the job exists before I kill it?
I know my problem is mostly failure to understand parameter... (4 Replies)
Discussion started by: holocene
4 Replies
9. Shell Programming and Scripting
Hi,
I am using net::ftp for transferring files now i am trying in the same Linux server as a result ftp is very fast but if the server is other location (remote) then the file transferred will be time consuming.
So i want try putting FTP part as a background process. I am unaware how to do... (5 Replies)
Discussion started by: vanitham
5 Replies
10. Shell Programming and Scripting
Hi,
I have written a menu driven shell script in which as per the choice, I run the another script on background.
For eg:
1. get info
2)process info
3)modify info
All the operations have different scripts which i schedule in background using &.
However I wish to display the error... (0 Replies)
Discussion started by: ashima jain
0 Replies
LEARN ABOUT DEBIAN
explain_fprintf_or_die
explain_fprintf_or_die(3) Library Functions Manual explain_fprintf_or_die(3)
NAME
explain_fprintf_or_die - formatted output conversion and report errors
SYNOPSIS
#include <libexplain/fprintf.h>
int explain_fprintf_or_die(FILE *fp, const char *format, ...);
int explain_fprintf_on_error(FILE *fp, const char *format, ...);
DESCRIPTION
The explain_fprintf_or_die function is used to call the fprintf(3) system call. On failure an explanation will be printed to stderr,
obtained from the explain_fprintf(3) function, and then the process terminates by calling exit(EXIT_FAILURE).
The explain_fprintf_on_error function is used to call the fprintf(3) system call. On failure an explanation will be printed to stderr,
obtained from the explain_fprintf(3) function, but still returns to the caller.
fp The fp, exactly as to be passed to the fprintf(3) system call.
format The format, exactly as to be passed to the fprintf(3) system call.
RETURN VALUE
The explain_fprintf_or_die function only returns on success, see fprintf(3) for more information. On failure, prints an explanation and
exits, it does not return.
The explain_fprintf_on_error function always returns the value return by the wrapped fprintf(3) system call.
EXAMPLE
The explain_fprintf_or_die function is intended to be used in a fashion similar to the following example:
int result = explain_fprintf_or_die(fp, format, ...);
SEE ALSO
fprintf(3)
formatted output conversion
explain_fprintf(3)
explain fprintf(3) errors
exit(2) terminate the calling process
COPYRIGHT
libexplain version 0.52
Copyright (C) 2010 Peter Miller
explain_fprintf_or_die(3)