Sponsored Content
Full Discussion: exec w/input file
Top Forums UNIX for Dummies Questions & Answers exec w/input file Post 33463 by google on Monday 6th of January 2003 03:59:17 PM
Old 01-06-2003
After you kickoff your driver script, check the return value ($?) to see what the return code is. You could do this checking throughout your driver script, after each subsequent script (assuming you use a return value (or exit value in each script))and have the driver script return a SUCCESS/FAILURE. Doing so, you will be able to control the flow.


or

You can implement your script using signals. By using kill -0 you can determine if your script has completed by listening for it. You would then have to revert back to the first suggestion of using the "wait" command to submit the process in the background....this is probably too much hassle but it should always work


Last edited by google; 01-07-2003 at 12:48 PM..
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Help with exec command and file descriptors II

Need to close files which descriptor number are larger than 9 in ksh. 'exec 10>&-' fails with 'ksh: 10: not found'. How do you specify file descriptors which occupies two or more digits in ksh script? Thanks, Masaki (2 Replies)
Discussion started by: masaki
2 Replies

2. Shell Programming and Scripting

Reading specific contents from 1 input files and appending it to another input file

Hi guys, I am new to AWK and unix scripting. Please see below my problem and let me know if anyone you can help. I have 2 input files (example given below) Input file 2 is a standard file (it will not change) and we have to get the name (second column after comma) from it and append it... (5 Replies)
Discussion started by: sksahu
5 Replies

3. HP-UX

exec and file descriptors

Hi, I speak and write english more or less, so I hope my asking be clear. :) In the company I am working, they are using control-m software to lunch shell scripts. So i put this command in all shell scripts: export LOGFILE_tmp=$PRODUC_DATA/tmp/${SCRIPT}_${PAIS}_`date... (0 Replies)
Discussion started by: anamcara
0 Replies

4. Shell Programming and Scripting

Need script to take input from file, match on it in file 2 and input data

All, I am trying to figure out a script to run in windows that will allow me to match on First column in file1 to 8th Column in File2 then Insert file1 column2 to file2 column4 then create a new file. File1: 12345 Sam 12346 Bob 12347 Bill File2:... (1 Reply)
Discussion started by: darkoth
1 Replies

5. UNIX for Dummies Questions & Answers

File redirect with find -exec

I'm trying to do an in-place encoding conversion in bash on a new Cygwin install, and this is the one-liner I've tried: $ find . -name '*.txt' -exec iconv -f UTF-8 -t CP932 {} > {} \;While the brace expansion works for multiple parameters (for example, -exec mv {} {}.bk), the redirect seems to... (1 Reply)
Discussion started by: R_Frankum
1 Replies

6. Shell Programming and Scripting

Script Variables Inquiry, Values Okay in Standalone Exec, No-Show in Cron Exec

I have the following bash script lines in a file named test.sh. #!/bin/bash # # Write Date to cron.log # echo "Begin SSI Load $(date +%d%b%y_%T)" # # Get the latest rates file for processing. # d=$(ls -tr /rms/data/ssi | grep -v "processed" | tail -n 1) filename=$d export filename... (3 Replies)
Discussion started by: ginowms
3 Replies

7. Shell Programming and Scripting

Script to delete files with an input for directories and an input for path/file

Hello, I'm trying to figure out how best to approach this script, and I have very little experience, so I could use all the help I can get. :wall: I regularly need to delete files from many directories. A file with the same name may exist any number of times in different subdirectories.... (3 Replies)
Discussion started by: *ShadowCat*
3 Replies

8. Shell Programming and Scripting

XML variable for input in same input file

Dear All , i stuck in one problem executing xml .. i have input xml as <COMMAND name="ARRANGEMENT.WRITE" timestamp="0" so="initial"> <SVLOBJECT> <LONG name="CSP_PMNT_ID" val="-1"/> <MONEY name="CSP_CEILING" amount="0.0" currency="AUD"/> ... (6 Replies)
Discussion started by: arvindng
6 Replies

9. Shell Programming and Scripting

Read input files and merge them in given order and write them to input one param or one file

Dear Friends, I am looking for a shell script to merge input files into one file .. here is my idea: 1st paramter would be outfile file (all input files content) read all input files and merge them to input param 1 ex: if I pass 6 file names to the script then 1st file name as output file... (4 Replies)
Discussion started by: hyd1234
4 Replies

10. Homework & Coursework Questions

Removing punctuations from file input or standard input

Just started learning Unix and received my first assignment recently. We haven't learned many commands and honestly, I'm stumped. I'd like to receive assistance/guidance/hints. 1. The problem statement, all variables and given/known data: How do I write a shell script that takes in a file or... (4 Replies)
Discussion started by: fozilla
4 Replies
directfb-config(1)					      DirectFB User's Manual						directfb-config(1)

NAME
directfb-config - script to get information about the installed version of directfb SYNOPSIS
directfb-config [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version] [--libs] [--cflags] [--input=<driver>[,<driver>]...] [--graph- ics=<driver>[,<driver>]...] [--fonts=<impl>[,<impl>]...] [--imageprovider=<impl>[,<impl>]...] [--videoprovider=<impl>[,<impl>]...] DESCRIPTION
directfb-config is a tool that is used to configure to determine the compiler and linker flags that should be used to compile and link pro- grams that use directfb. It is also used internally to the .m4 macros for GNU autoconf that are included with directfb. OPTIONS
directfb-config accepts the following options: --version Print the currently installed version of directfb on the standard output. --libs Print the linker flags that are necessary to link a directfb program. --cflags Print the compiler flags that are necessary to compile a directfb program. --prefix[=DIR] If specified, use PREFIX instead of the installation prefix that directfb was built with when computing the output for the --cflags and --libs options. This option is also used for the exec prefix if --exec-prefix was not specified. This option must be specified before any --libs or --cflags options. --exec-prefix[=DIR] If specified, use PREFIX instead of the installation exec prefix that directfb was built with when computing the output for the --cflags and --libs options. This option must be specified before any --libs or --cflags options. --input=<driver>[,<driver>]... Print the linker flags necessary to statically link the listed input drivers into the object. --graphics=<driver>[,<driver>]... Print the linker flags necessary to statically link the listed graphic drivers into the object. --fonts=<impl>[,<impl>]... Print the linker flags necessary to statically link the listed font implementations into the object. --imageprovider=<impl>[,<impl>]... Print the linker flags necessary to statically link the listed imageprovider implementations into the object. --videoprovider=<impl>[,<impl>]... Print the linker flags necessary to statically link the listed videoprovider implementations into the object. COPYRIGHT
Copyright (C) 1998 Owen Taylor Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, pro- vided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in sup- porting documentation. Adapted to directfb by Guillem Jover <guillem@debian.org>. 0.9.25.1 2006-06-14 directfb-config(1)
All times are GMT -4. The time now is 08:58 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy