Operating System - HP-UX
1834395 Members
1212 Online
110066 Solutions
New Discussion

Re: Running a script into other script ....

 
SOLVED
Go to solution
Manuales
Super Advisor

Running a script into other script ....

A program has the following line:

${DIR}/screen.gen -f ${DIR}/${PROG} fun_2

i know that is a program to be run and parameters are:
-f ${DIR}/${PROG} fun_2

the doubt is:
what is the meaning of "-f" ? is part of a parameter or is a parameter for run a script?

Thaks ..
2 REPLIES 2
Hein van den Heuvel
Honored Contributor
Solution

Re: Running a script into other script ....

The -f will be interpretted by 'screen.gen'
-f ofter means 'Force'
here i suspect it means 'File'
The fun_2 would likely be the argument to PROG.

Hein.
A. Clay Stephenson
Acclaimed Contributor

Re: Running a script into other script ....

${DIR}/screen.gen -f ${DIR}/${PROG} fun_2

In this case, "-f" means exactly what it means -- no more and no less. If there is any documentaion for "screen.gen" then it should explain what the -f option does. Well wriiten programs and scripts often include a usage that is output (properly to stderr) when supplied with -?, -u, or incorrect arguments. In this case, "-f" PROBABLY means than screen.gen takes input (or executes) the file specified by the -f option -- but that is a guess.
If it ain't broke, I can fix that.