Hi all,
I am working on a c source code nearly 2000 line . it contains one big for( i=0; i< 200 ; i++ ) loop of around 600 lines
could any tell me how to break the execution of prog when the value of i is 50 in for loop so that i can check
inside the loop.
Thanks.. (1 Reply)
Hi Folks,
I have been trying to create a script wherein after it reads a certain number of data, it will pause and ask the user if he wants to continue or not. However, it seems that when it is supposed to read the user's answer, the script will go into a loop. What is wrong with my script here?... (7 Replies)
Hi,
I am trying to write a script which will read inputs form user and process those files, I have issue reading the input parameters in a loop. Following is the script...
I run the script as ./Script.sh 3 table1 table 2 table3
NumberOfTables=$1
let TableCount=1
while
do
... (3 Replies)
Hi there,
I'm wondering how I can run a script that would loop and launch a command that would take as parameter every line in a file one by one.
For example, say I want to remove a list of files:
~$ cat filestoremove
foo
bar
~$ cat myscript
for file in filestoremove; do
rm $file... (2 Replies)
Hello all,
I need to extract parameters from a file. For example, I have a file file.dat as
par1 val1
par2 val2
par3 val3
I need to extract this and store val1 in par1 variable and so on.
Please help. Thanks for your support. (2 Replies)
Hi Im running this script, which is supposed to find the max value build some tables and then stop running once all the tables are built. Thing is , it keeps assigning a null value to $h and then $g is null so it keep building tables i.e. testupdateNUL. How can I stop this? Here is what I have:
... (4 Replies)
I wonder how to stop further loop iterations when conditions gets false e.g.
This file.txt contains the following structure :
1
2
3
4
5
6
7
8
9
10
How to stop iteration when if statement gets false ?
for n in `cat file.txt`
do
if (( n<=5 )) (1 Reply)
Im unable to stop the below infinite loop (bash script). Can someone tell me why this isnt responding to signals eg: ctrl+c (SIGINT) or ctrl+z
c=0
test_loop() {
c=$(($c+1))
echo "count value is : $c "
sleep 1
test_loop
}
Im using: SunOS 5.10
PS: If run this as... (13 Replies)
I'm trying to stop reading a file until the end of the file is reached or a defined delimiter line is reached. Some how I need to test the fail state of the last 2 commands, not just the last command.
echo -e "hello\ngoodbye\n####\ntesting" | while read line; ]; do echo "$line"; done
hello... (4 Replies)
Hello,
I have snippet code from Lippman's <<C++ primer>>.
The program is to convert regular decimal (0 ~ 15) numbers to basic hexdecimals. The instruction tells the program will execute by hitting newline at the end. When I tried to run the compiled program, hitting ENTER did not work as... (3 Replies)
Discussion started by: yifangt
3 Replies
LEARN ABOUT X11R4
pkgparam
pkgparam(1) User Commands pkgparam(1)NAME
pkgparam - display package parameter values
SYNOPSIS
pkgparam [-v] [-d device] [-R root_path] pkginst [param...]
pkgparam -f filename [-v] [param...]
DESCRIPTION
pkgparam displays the value associated with the parameter or parameters requested on the command line. The values are located in either the
pkginfo(4) file for pkginst or from the specific file named with the -f option.
One parameter value is shown per line. Only the value of a parameter is given unless the -v option is used. With this option, the output of
the command is in this format:
parameter1='value1'
parameter2='value2'
parameter3='value3'
If no parameters are specified on the command line, values for all parameters associated with the package are shown.
OPTIONS
Options and arguments for this command are:
-d device Specify the device on which a pkginst is stored. It can be a directory pathname or the identifiers for tape, floppy disk,
or removable disk (for example, /var/tmp, /dev/diskette, and /dev/dsk/c1d0s0). The special token spool may be used to rep-
resent the default installation spool directory (/var/spool/pkg).
-f filename Read filename for parameter values.
-R root_path Defines the full path name of a subdirectory to use as the root_path. All files, including package system information
files, are relocated to a directory tree starting in the specified root_path.
-v Verbose mode. Display name of parameter and its value.
OPERANDS
pkginst Defines a specific package instance for which parameter values should be displayed.
param Defines a specific parameter whose value should be displayed.
ERRORS
If parameter information is not available for the indicated package, the command exits with a non-zero status.
EXIT STATUS
0 Successful completion.
>0 An error occurred.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
SEE ALSO pkgmk(1), pkgproto(1), pkgtrans(1), pkginfo(4), attributes(5)
Application Packaging Developer's Guide
NOTES
With the -f option, you can specify the file from which parameter values should be extracted. This file should be in the same format as a
pkginfo(4) file. For example, such a file might be created during package development and used while testing software during this stage.
SunOS 5.10 6 Nov 2000 pkgparam(1)