06-25-2018
Now, that I'd call ambitious: Define a 5GB variable!
Not sure you exceeded any system / configuration parameter, though. Looks more like you hit a limit of the virtual memory system / manager.
What be the reason to read an entire file into a variable in the first place?
This User Gave Thanks to RudiC For This Post:
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi guys,
I want to input some variables from a file.
I tried it with following script,
for i in 1 2 3 4
do
read varible1 varible2 < ddd.txt
echo $varible1 $varible2
done ... (1 Reply)
Discussion started by: maheshsri
1 Replies
2. UNIX and Linux Applications
Hi
I am trying to edit a csv file. Bacically I need to input a search variable and the value that must be changed in one of the fields corresponding to that searched variable.
My csv file looks like so:
1,1A,5
1,1B,2
1,1C,3
2,2A,7
2,2B,4
2,2C,0
3,3A,1
3,3B,6
3,3C,4
I want to... (4 Replies)
Discussion started by: ladyAnne
4 Replies
3. Shell Programming and Scripting
Hello,
I am working with KSH on AIX and I have 2 files generated from different sources... as seen below:
FILE1 FILE2
AAA AAA@ABS0001C
BBB BBB@ABS0003D
CCC CCC@ABS0023A
DDD DDD@ABC0145D
EEE EEE@ABS0090A
FFF FFF@ABS0002A
GGG GGG@ABC0150D
HHH
FILE1 is main main data source,... (4 Replies)
Discussion started by: right_coaster
4 Replies
4. Shell Programming and Scripting
Hi guys,
I have multiple files (>5000) which I have in a folder. I read every file name and put it in a tmp variable "i" so that i can use it in the following task.
I have a large .txt file (>50 MB) in which I want to find the variable "i" and the lines after this variable, so that I can use... (4 Replies)
Discussion started by: Ashitaka007
4 Replies
5. Shell Programming and Scripting
I need to know how the the string constant from Input File should be read and provide as input data for the script .
INPUT FILE
CONST VARIABLE
myname=/root/dir/syslog/myname1
myname=/root/dir/syslog/myname2
myname=/root/dir/syslog/myname3
urname=/root/dir/syslog/urname1... (6 Replies)
Discussion started by: baraghun
6 Replies
6. Shell Programming and Scripting
Hi guys,
Does awk have a built-in variable which I can use to display the input file it's currently reading?
I'm currently concatenating multiple files using awk and later on do some parsing. But for now, I want to add an extra column in the main output data file - basically putting in the... (3 Replies)
Discussion started by: Det7
3 Replies
7. Shell Programming and Scripting
Hi all,
I need a script to delete a large set of files from a directory under / based on an input file and want to redirect errors into separate file.
I have already prepared a list of files in the input file.
Kndly help me.
Thanks,
Prash (36 Replies)
Discussion started by: prash358
36 Replies
8. Shell Programming and Scripting
Hi...Does anyone know how to input huge file about 25 GB to awk
if single file then this works
awk '{print}' <hugefile
suppose if have to use something like this
awk FNR==NR{x=$0;next}{print $0,x}' hugefile1 hugefile2
then how to redirect ? and is there any provision to assign memory... (12 Replies)
Discussion started by: Akshay Hegde
12 Replies
9. Shell Programming and Scripting
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
10. Shell Programming and Scripting
Hi
I have a requirement of taking time as input variable outside the script.depending on the time it will check the file output .like
./script.sh <30 min>
so script.sh should run every 5 minutes ie.6 times to check the output file.Can any one please help here. (7 Replies)
Discussion started by: netdbaind
7 Replies
LEARN ABOUT OSF1
pthread_cond_init
pthread_cond_init(3) Library Functions Manual pthread_cond_init(3)
NAME
pthread_cond_init - Initializes a condition variable.
LIBRARY
DECthreads POSIX 1003.1c Library (libpthread.so)
SYNOPSIS
#include <pthread.h>
int pthread_cond_init(
pthread_cond_t *cond,
const pthread_condattr_t *attr);
STANDARDS
Interfaces documented on this reference page conform to industry standards as follows:
IEEE Std 1003.1c-1995, POSIX System Application Program Interface
PARAMETERS
Condition variable to be initialized. Condition variable attributes object that defines the characteristics of the condition variable to
be initialized.
DESCRIPTION
This routine initializes the condition variable (cond) with attributes referenced by attr. If attr is NULL, the default condition variable
attributes are used.
A condition variable is a synchronization object used in conjunction with a mutex. A mutex controls access to data that is shared among
threads; a condition variable allows threads to wait for that data to enter a defined state.
Condition variables are not owned by a particular thread. Any associated storage is not automatically deallocated when the creating thread
terminates.
Use the DECthreads macro PTHREAD_COND_INITIALIZER to initialize statically allocated condition variables to the default condition variable
attributes. To call this macro, enter:
pthread_cond_t condition = PTHREAD_COND_INITIALIZER
When statically initialized, a condition variable should not also be using pthread_cond_init(3). Also, a statically initialized condition
variable need not be destroyed using pthread_cond_destroy(3).
Under certain circumstances, it might be impossible to wait upon a statically initialized condition variable when the process virtual
address space (or some other memory limit) is nearly exhausted. In such a case, pthread_cond_wait(3) or pthread_cond_timedwait(3) can
return [ENOMEM]. To avoid this possibility, initialize critical condition variables using pthread_cond_init(3).
RETURN VALUES
If an error condition occurs, this routine returns an integer value indicating the type of error, the condition variable is not initial-
ized, and the contents of cond are undefined. Possible return values are as follows: Successful completion. The system lacks the neces-
sary resources to initialize another condition variable, or The system-imposed limit on the total number of condition variables under exe-
cution by a single user is exceeded. The implementation has detected an attempt to reinitialize the object referenced by cond, a previ-
ously initialized, but not yet destroyed condition variable. The value specified by attr is invalid. Insufficient memory exists to ini-
tialize the condition variable.
ERRORS
None
RELATED INFORMATION
Functions: pthread_cond_broadcast(3), pthread_cond_destroy(3), pthread_cond_signal(3), pthread_cond_timedwait(3), pthread_cond_wait(3)
Manuals: Guide to DECthreads and Programmer's Guide
delim off
pthread_cond_init(3)