08-12-2008
Ah ok, understood. We solved such issues usually by sending an ok-flag file, just an empty file, with some special name, that you check on the UNIX side and if it arrived as 2nd file, you know that the 1st file (your datafile) has completely arrived. At least if no error occured.
Don't forget to remove the ok-flag file when everything is done, so the next ftp can come ^^
10 More Discussions You Might Find Interesting
1. Programming
How can I transfer an open file description between two process? (1 Reply)
Discussion started by: xu_wen_dong
1 Replies
2. UNIX for Advanced & Expert Users
I have set the maximum no of file descriptors open in a process to the value 8192 using the following lines
set rlim_fd_max=8192
set rlim_fd_cur=8192
in the /etc/system file.
I rebooted the machine and the command ulimit -n / -Hn both display the limits as 8192. However when I run my... (2 Replies)
Discussion started by: lakshmankumar12
2 Replies
3. Shell Programming and Scripting
Hi,
I have an requirement of reading a long line of 7000 chars and cutting it
iam doing this :
while read -r x
do
echo $x
.........
done < `cat filename`
when iam doing this it is giving me "0403-016 Cannot find or open the file."
Can anyone let how this can be done. (2 Replies)
Discussion started by: karthee
2 Replies
4. Shell Programming and Scripting
We have a process that is running out of file handles. Is there some command line way to determine this that we can include into a cron script?
Please let me know
JAK (3 Replies)
Discussion started by: jakSun8
3 Replies
5. Programming
Can any one tell me is there any problem in reading the /proc/#/status file for finding out the exact process name..??? (4 Replies)
Discussion started by: clintoo
4 Replies
6. Shell Programming and Scripting
I would appreciate some help, please.
I have a file cutshellb.txt, which contains four report names (but it could be any number from 1 to x. The report suffix is not necessarily consecutive:
report3785
report3786
report3787
report3788
I have a shell script which attempts to read the... (3 Replies)
Discussion started by: Dicloflex
3 Replies
7. Solaris
Hi
want to know what file (descriptor+filename+socket) is being accessed by particular process on solaris.
Purpose : while running perf. test, needs to find where is the bottleneck.
We are providing concurrnet load for around 1 hr and needs to capture data related to file usage pattern... (1 Reply)
Discussion started by: raxitsheth
1 Replies
8. Red Hat
First post, sorry to be a bother but this one has been dogging me. I have a process user (java application server) that trips a resource limit every couple weeks and need help finding what limit we're hitting.
First, this is what's running:
This is the error when jobs are run or the... (0 Replies)
Discussion started by: Katahdin
0 Replies
9. Shell Programming and Scripting
Hi,
I am running this command through a shell script and getting the error mentioned in the subject line:
testing.awk -f x.txt TNAME
My testing.awk file contains something like
++++++++++++++++++
#!/usr/bin/awk -f
BEGIN{
TAB_NAME="INSERT_ONE_" ARGV ;
}
if ( $1=="JAM_ONE" &&... (1 Reply)
Discussion started by: kunwar
1 Replies
10. SCO
Hi
How to increase maximum number of open file in "sco xenix binary" running in "sco unix openserver 5.0.7" ?
I have changed "NOFILES" kernel parameter to 512, but xenix binray can't open more than 60.
tnx (4 Replies)
Discussion started by: javad1_maroofi
4 Replies
LEARN ABOUT DEBIAN
pvmfprobe
PROBE(3PVM) PVM Version 3.4 PROBE(3PVM)
NAME
pvm_probe - Check if message has arrived.
SYNOPSIS
C int bufid = pvm_probe( int tid, int msgtag )
Fortran call pvmfprobe( tid, msgtag, bufid )
PARAMETERS
tid Integer task identifier of sending process supplied by the user.
msgtag Integer message tag supplied by the user. msgtag should be >= 0.
bufid Integer returning the value of the new active receive buffer identifier. Values less than zero indicate an error.
DESCRIPTION
The routine pvm_probe checks to see if a message with label msgtag has arrived from tid. If a matching message has arrived pvm_probe
returns a buffer identifier in bufid. This bufid can be used with pvm_bufinfo to determine information about the message such as its
source and length.
If the requested message has not arrived, then pvm_probe returns with a 0 in bufid. If some error occurs bufid will be < 0.
A -1 in msgtag or tid matches anything. This allows the user the following options. If tid = -1 and msgtag is defined by the user, then
pvm_probe will accept a message from any process which has a matching msgtag. If msgtag = -1 and tid is defined by the user, then
pvm_probe will accept any message that is sent from process tid. If tid = -1 and msgtag = -1, then pvm_probe will accept any message from
any process.
pvm_probe can be called multiple times to check if a given message has arrived yet. After the message has arrived, pvm_recv must be called
before the message can be unpacked into the user's memory using the unpack routines.
EXAMPLES
C:
tid = pvm_parent();
msgtag = 4 ;
arrived = pvm_probe( tid, msgtag );
if ( arrived )
info = pvm_bufinfo( arrived, &len, &tag, &tid );
else
/* go do other computing */
Fortran:
CALL PVMFPROBE( -1, 4, ARRIVED )
IF ( ARRIVED .GT. 0 ) THEN
CALL PVMFBUFINFO( ARRIVED, LEN, TAG, TID, INFO )
ELSE
* GO DO USEFUL WORK
ENDIF
ERRORS
These error conditions can be returned by pvm_probe.
PvmBadParam
giving an invalid tid value or msgtag.
PvmSysErr
pvmd not responding.
SEE ALSO
pvm_bufinfo(3PVM), pvm_getminfo(3PVM), pvm_nrecv(3PVM), pvm_recv(3PVM), pvm_unpack(3PVM)
30 August, 1993 PROBE(3PVM)