Sponsored Content
Top Forums Shell Programming and Scripting KSH script to run other ksh scripts and output it to a file and/or email Post 302406380 by pacifican on Monday 22nd of March 2010 05:54:23 PM
Old 03-22-2010
Yes something similar.Thanks for your help.
I will try and see if this works for me.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Run ksh script from cgi

Hi, I'm developing a system which requires me to run a ksh script from within a cgi script. What sort of syntax will I need to do this, I'm sure it's simple but can't find out how anywhere! Thanks. (2 Replies)
Discussion started by: hodges
2 Replies

2. Shell Programming and Scripting

sending email from KSH unix script.

Hi Need guidance on including code to mail a couple of files atached with some subject and mail body !!.. Thanks in advance (3 Replies)
Discussion started by: rosh0623
3 Replies

3. Shell Programming and Scripting

New wrapper script will be developed to wrap two ksh scripts

Hi friend,:) The script should invoke these scripts sequentially! When one will finish the second will start. Please help me with it, thanks,:b: Ishai (3 Replies)
Discussion started by: ishai82
3 Replies

4. Shell Programming and Scripting

sending email from a ksh script

hi all, i have a ksh script which is meant to send an email with an attachment. i use the following command to send email /usr/bin/uuencode $logFn $logFn | /usr/bin/mail -s "restoration results" $EMAILTO; where '$logFn' is the name of the file including the full path e.g... (0 Replies)
Discussion started by: cesarNZ
0 Replies

5. Shell Programming and Scripting

Run KSH script in Windows machine

Hi i created a unix script ksh that goes to a specific folder/xyz/abc, searches for all the .txt files in it and perform some operation on these text file. It runs well in Unix server(machine) Now this script needs to be run on a windows machine having the same folder structure(that is look... (1 Reply)
Discussion started by: mad_man12
1 Replies

6. Shell Programming and Scripting

run script through crontab using ksh

hi i have a script called test.sh. the content is ls >> crontest.txt. if i run manually it's giving output.but if i scheduled in crontab it's not giving output. crontab entry: 02 * * * * /sms5/SMSHOME/eds_sh/test.sh >> /sms5/SMSHOME/eds_sh/testfile/logfile 2>&1 I am using ksh.is there... (2 Replies)
Discussion started by: muraliinfy04
2 Replies

7. Shell Programming and Scripting

Run script in a backgroun - ksh

i ran the below in ksh... nohup <script> & it is runnign in background. now how do i see if the above command is success... i also need to bring the command to foreground and view the run details. pls advise how to do that... (1 Reply)
Discussion started by: billpeter3010
1 Replies

8. Shell Programming and Scripting

How to run ksh script in bash shell?

Hi All, I have few bash shell scripts which depends on one Ksh shell script. When i run bash shell scripts, it shows error as bad interpretor : ksh no such bad file or directory. When i tried to install ksh shell, it is not downloading too. If I remove !/bin/ksh command in starting line of the... (14 Replies)
Discussion started by: Karthik03
14 Replies

9. UNIX for Dummies Questions & Answers

To run ksh script via autosys job without asking password for file transfer

I've K shell script. It will transfer the files from one server to other server using 'SCP' command. While running the script alone as a command line in UNIX ssh terminal its running with out asking password and files are transferred with out asking for password. But by running the script using... (6 Replies)
Discussion started by: maheshbabu
6 Replies

10. Shell Programming and Scripting

How to run multiple Queries in a ksh Script?

How to run multiple Queries in a ksh Script I have a KSH script that has one SQL Query and generates and emails output of the query in HTML format. I want to change the script so that it has three SQL queries and the last query generates and emails the HTML output page of just that query. So far... (5 Replies)
Discussion started by: JolietJake
5 Replies
User manual for old pnm functions(3)			     Library Functions Manual			      User manual for old pnm functions(3)

NAME
libpnm - libnetpbm functions to read and write PNM image files SYNOPSIS
#include <netpbm/pnm.h> void pnm_init( int *argcP, char *argv[] ); xel ** pnm_allocarray( int cols, int rows); xel * pnm_allocrow( int cols); void pnm_freearray( xel **xels, int rows); void pnm_freerow( xel *xelrow); void pnm_readpnminit( FILE *fp, int *colsP, int *rowsP, xelval *maxvalP, int *formatP ); void pnm_readpnmrow( FILE *fp, xel *xelrow, int cols, xelval maxval, int format ); xel ** pnm_readpnm( FILE *fp, int *colsP, int *rowsP, xelval *maxvalP, int* formatP ); void pnm_writepnminit( FILE * fp , int cols, int rows, xelval maxval, int format, int forceplain); void pnm_writepnmrow( FILE *fp, xel *xelrow, int cols, xelval maxval, int format, int forceplain ); void pnm_writepnm( FILE *fp, xel ** xels, int cols, int rows, xelval maxval, int format, int forceplain ); void pnm_nextimage(FILE * file, int * const eofP); void pnm_check( FILE * file, const enum pm_check_type check_type, const int format, const int cols, const int rows, const xelval maxval, enum pm_check_code *retvalP); void pnm_promoteformatrow( xel *xelrow, int cols, xelval maxval, int format, xelval newmaxval, int newformat); void pnm_promoteformat( xel **xels, int cols, xelval maxval, int format, xelval newmaxval, int newformat); xel pnm_whitexel( xelval maxval, int format); xel pnm_blackxel( xelval maxval, int format); void pnm_invertxel( xel *x, xelval maxval, int format); xel pnm_backgroundxelrow( xel *xelrow, int cols, xelval maxval, int format); xel pnm_backgroundxel( xel **xels, int cols, int rows, xelval maxval, int format); typedef ... xelval; typedef ... xel; #define PNM_ASSIGN1(x,v) ... #define PNM_GET1(x) ... #define PNM_EQUAL(x,y) ... #define PNM_FORMAT_TYPE(format) ... DESCRIPTION
These library functions are part of Netpbm(1) TYPES AND CONSTANTS Each xel contains three xelvals, each of which should contain only the values between 0 and PNM_MAXMAXVAL, inclusive. XEL MANIPULATIONS The PNM_GET1 macro extracts a single value from an xel, when ou know it's from a PBM or PGM file. When it's from a PPM file, use PPM_GETR(), PPM_GETG(), and PPM_GETB(). The PNM_ASSIGN1 macro assigns a single value to an xel, when you know it's from a PBM or PGM file. When it's from a PPM file, use PPM_ASSIGN. The PNM_EQUAL macro checks two xels for equality. The PNM_FORMAT_TYPE macro computes a format type code from a format code. The format types are PBM, PGM, PPM, and PAM. But note that PBM, PGM, and PPM each are two different formats: a plain one and a raw one. So there are four format types, but seven formats. PNM_FORMAT_TYPE does not work on the PAM format code. pnm_whitexel() and pnm_blackxel() return a white or black xel, respectively, for the given maxval and format. pnm_invertxel() inverts an xel. INITIALIZATION pnm_init() is identical to pm_proginit. pnm_init() is obsolete. Use pm_proginit() instead. MEMORY MANAGEMENT pnm_allocarray() allocates space for an array of xels. pnm_freearray() frees an array space allocated by pnm_allocarray() or pnm_readpnm(). pnm_allocrow() allocates space for a row of a PNM image. pnm_freerow() frees it. READING PNM FILES pnm_readpnminit() is similar to pnm_readpaminit(), but reads only PNM images and has a different parameter list. pnm_readpnmrow() is similar to pnm_readpamrow() but only works on PNM images and has a different parameter list and returns the row as an array of xels instead of tuples. pnm_readpnm() is similar to pnm_readpam() except that it reads only PNM images and uses a different parameter list and returns an array of rows such that pnm_readpnmrow() would return rather than such that pnm_readpamrow() would return. WRITING FILES pnm_writepnminit() is similar to pnm_writepaminit() except that it can write only a PNM header and has a different parameter list. forceplain is a binary value. True (nonzero) means to write the image in the plain (ASCII) version of the selected format. False (zero) means to write it in the raw (binary) version of the selected format. See PNMformatspecification(5) pnm_writepnmrow() is similar to pnm_writepamrow() except that it works only on PNM images and has a different parameter list and takes an array of xels instead of an array of tuples. See the description of forceplain above. pnm_writepnm() is similar to pnm_writepam() except that it works only on PNM image, has a different parameter list, and takes an array of rows of xels instead of an array of rows of tuples. See the description of forceplain above. FORMAT PROMOTION pnm_promoteformatrow() promotes a row of xels from one maxval and format to a new set. Use this when you are combining multiple anymaps of different types - just take the maximum of the maxvals and the maximum of the formats, and promote them all to that. pnm_promoteformat() promotes an entire anymap. MISCELLANEOUS pnm_nextimage() positions a PNM input file to the next image in it (so that a subsequent pnm_readpnminit() reads its header). pnm_nextimage() is analogous to pbm_nextimage(), but works on PPM, PGM, and PBM files. pnm_check() is similar to pnm_checkpam() except it works only on PNM images. pnm_check() is identical to ppm_check(). pnm_backgroundxelrow() figures out an appropriate background xel based on the row of xels xelrow, which is cols xels wide, has maxval max- val, and represents an image with format format. This estimate works best when the row is the top or bottom row of the image. pnm_backgroundxel() does the same thing as pnm_backgroundxelrow(), except based on an entire image instead of just one row. This tends to do a slightly better job than pnmbackgroundxelrow(). SEE ALSO
Libnetpbm(3) , LibnetpbmUser'sGuide(3) , LibnetpbmDirectory(1) , pbm(5) , pgm(5) , ppm(5) , pam(5) , libpbm(3) , libpgm(3) , libppm(3) AUTHOR
Copyright (C) 1989, 1991 by Tony Hansen and Jef Poskanzer. netpbm documentation 8 September 2007 User manual for old pnm functions(3)
All times are GMT -4. The time now is 01:25 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy