10 More Discussions You Might Find Interesting
1. Programming
Hello everybody I'am trying to open a File with an Filedeskriptor. After Opening the file I want to append Data to the File!
I have the following code now, but I only overwrite the data from the file and did not append it!
void Buffer::writeIntoFile(std::string name, int length, std::string... (2 Replies)
Discussion started by: pk543450
2 Replies
2. Shell Programming and Scripting
I have a file which has data in the below format:
7810902|6783014102| || |0| |0| |0| |0|||||T|04/13/2006||9423|7421||100|2006-04-13 16:50:28|||2006-04-13 16:50:28|n|51|-1||214
1089929|||||NewSpCreateAction request successful. Activity ID = <826528>||||100|n|2006-04-13 16:50:27|2006-04-13... (3 Replies)
Discussion started by: ankianand88
3 Replies
3. UNIX for Dummies Questions & Answers
Hi.
I have 2 create 2 temporary tables.the data will be same with same cols..but after creating 2 tables..i have to merge data in file and send..however the query is after merging data no duplicates shud be present..and only 1 record for a entity must be present..
for eg:
table1 has foll cols... (3 Replies)
Discussion started by: musu
3 Replies
4. Shell Programming and Scripting
I have a script which has to be scheduled to run 3 times a day.
My script picks the required fields from logfile and stores the data in a.csv file.
Sample data.
my logfile contain:
0097A,0374D,100903,1519,00000606191
0097A,C88RA,100903,0724,00000606105
So the output of first execution... (3 Replies)
Discussion started by: shrima.pratima
3 Replies
5. Shell Programming and Scripting
Hi ,
i have two log files, i need to combine this as a one log file.
i need to do this by SED ,
test1.log
sadadadaadfsaf
test2.log
adadadadadada
i need this in a single file from test 1 to test2.log
test2.log(expected result)
adadadadadada (7 Replies)
Discussion started by: mhdmehraj
7 Replies
6. Shell Programming and Scripting
My input file:
data_5 Ali 422 2.00E-45 102/253 140/253 24
data_3 Abu 202 60.00E-45 12/23 140/23 28
data_1 Ahmad 256 7.00E-45 120/235 140/235 22
data_4 Aman 365 8.00E-45 15/65 140/65 20
data_10 Jones 869 9.00E-45 65/253 140/253 18... (12 Replies)
Discussion started by: patrick87
12 Replies
7. Shell Programming and Scripting
Hi guys,
I need to investigate a memory leak on a solaris server, so what I have done is pmap'd each process on the system with a script which tar'd the directory every hour in cron. Now I need to write a script to process the pmap data.
So what I have is about 100 directories
# ll... (2 Replies)
Discussion started by: borderblaster
2 Replies
8. Shell Programming and Scripting
Hi experts
i have a simple script that fetches the count from different servers and inserts ahead of server name like below
servera,1
serverb,25
serverc,35
what i want to do is now when i run this script next day i want that output to be next to the earlier one like below and if possible... (5 Replies)
Discussion started by: raj2989
5 Replies
9. Shell Programming and Scripting
Hi,
The below is the content of the file.
008.03.50.21|ID4|0015a3f01cf3
008.04.20.16|ID3|0015a3f02337
008.04.20.17|ID4_1xVoice|00131180d80e
008.04.20.03|ID3_1xVoice|0015a3694125
008.04.30.05|ID3_1xVoice|0015a3f038af
008.06.30.17|ID3_1xVoice|00159660d454... (2 Replies)
Discussion started by: ravi_rn
2 Replies
10. UNIX for Dummies Questions & Answers
i want to develop a script newdata that writes new data to a file called items
the file items has the following headings columns separated by tabs:
channel date time programe
if i type executable file newdata on the command line with parameters, it should append it to the items files
the... (1 Reply)
Discussion started by: fletcher
1 Replies
SCATTER(3PVM) PVM Version 3.4 SCATTER(3PVM)
NAME
pvm_scatter - Sends to each member of a group a section of an array from a specified member of the group.
SYNOPSIS
C int info = pvm_scatter( void *result, void *data,
int count, int datatype, int msgtag,
char *group, int rootginst)
Fortran call pvmfscatter(result, data, count, datatype,
msgtag, group, rootginst, info)
PARAMETERS
result Pointer to the starting address of an array of length count of datatype which will be overwritten by the message from the specified
root member of the group.
data On the root this is a pointer to the starting address of an array datatype of local values which are to be distributed to the mem-
bers of the group. If n is the number of members in the group, then this array of datatype should be of length at least n*count.
This argument is meaningful only on the root.
count Integer specifying the number of elements of datatype to be sent to each member of the group from the root.
datatype
Integer specifying the type of the entries in the result and data arrays. (See below for defined types.)
msgtag Integer message tag supplied by the user. msgtag should be >= 0. It allows the user's program to distinguish between different
kinds of messages.
group Character string group name of an existing group.
rootginst
Integer instance number of group member who performs the scatter of its array to the members of the group.
info Integer status code returned by the routine. Values less than zero indicate an error.
DESCRIPTION
pvm_scatter() performs a scatter of data from the specified root member of the group to each of the members of the group, including itself.
All group members must call pvm_scatter(), each receives a portion of the data array from the root in their local result array. It is as
if the root node sends to the ith member of the group count elements from its array data starting at offset i*count from the beginning of
the data array. And, it is as if, each member of the group performs a corresponding receive of count values of datatype into its result
array. The root task is identified by its instance number in the group.
C and Fortran defined datatypes are:
C datatypes FORTRAN datatypes
-----------------------------------
PVM_BYTE BYTE1
PVM_SHORT INTEGER2
PVM_INT INTEGER4
PVM_FLOAT REAL4
PVM_CPLX COMPLEX8
PVM_DOUBLE REAL8
PVM_DCPLX COMPLEX16
PVM_LONG
In using the scatter and gather routines, keep in mind that C stores multidimensional arrays in row order, typically starting with an ini-
tial index of 0; whereas, Fortran stores arrays in column order, typically starting with an offset of 1.
The current algorithm is very simple and robust. A future implementation may make more efficient use of the architecture to allow greater
parallelism.
EXAMPLES
C:
info = pvm_scatter(&getmyrow, &matrix, 10, PVM_INT,
msgtag, "workers", rootginst);
Fortran:
CALL PVMFSCATTER(GETMYCOLUMN, MATRIX, COUNT, INTEGER4,
& MTAG, 'workers', ROOT, INFO)
ERRORS
These error conditions can be returned by pvm_scatter
PvmNoInst
Calling task is not in the group
PvmBadParam
The datatype specified is not appropriate
PvmSysErr
Pvm system error
SEE ALSO
pvm_bcast(3PVM), pvm_barrier(3PVM), pvm_psend(3PVM)
21 April, 1994 SCATTER(3PVM)