Not seeing any reason in the script for the behaviour you describe, I think we need more context info. Please post the output of the script run with the -x option set, and also a directory listing from within every loop.
Thank you Rudic for the answer
I have copied in the HOTFOLDER 1.xlsx 2.xlsx 3.xlsx 4.xlsx
as you can see, only the 4.xlsx number was processed and the others remained in the HOTFOLDER
after that I copied the 4.xlsx number back into the HOTFOLDER and now it has processed all the xlsx files present.
I highlight you in bold inotifywait waiting to receive input
Hello
i am trying to remove a line using an input file , but this depends upon user interaction
here is the sample
#!/bin/sh
echo "Please enter whether you want to remove Profile"
read value1
if ;then
sed /movie/d temp.txt> temp3.txt
else
echo "Script didnot remove profile"
fi
... (3 Replies)
Could some one help me on this... For loop is working...!
for x in $i
do
for y in $j
do
z=`echo $y | awk '{print $2}'`
if
then
FS=`/usr/bin/echo $y`
echo $FS >>$Basic_location/out.csv
fi
done
CPRT="Cpoyright @ BTOIDCIM"
done (3 Replies)
here we go..
While loop is not working file.. It also invokes one more shell scripts for which parameters need to passed on.
while read line
do
####
#### We want to have a logfile for each load
####
PLog="${LogDir}/${Script}.log";
####
... (5 Replies)
Hi
I'm going to write a program in C language to watch activity on file system
in SCO UNIX openserver 5.0.6.
Apparently Linux provide an API called "inotify" , I'm wondering what's the SCO UNIX package for this ? (1 Reply)
hi everyone
i am facing a very strange problem . please help me why my while loop is not working.
below is my code
#!/bin/ksh
file=RCMC_ABC_999_080924_210813.DAR
echo ${file}
value=001
count=10
echo "abc"
echo ${count}
value=$((${value} + 1 ))
echo ${value}
while ]
do
echo... (3 Replies)
I have initiated an inotify process with --fromfile option and the file contain the paths to be monitored.
/usr/local/maldetect/inotify/inotifywait -d -r -o /usr/local/maldetect/inotify/inotify_log --fromfile /usr/local/maldetect/sess/inotify.paths.28364 --exclude (^/var/tmp/mysql.sock)... (2 Replies)
Hello all,
I would like to unzip some files with a for-loop.
Is there anyone who could tell me how I should do this - in a correct way?
for file in $(ls); do echo gzip -d < $file | tar xf -; done
The problem is the pipe - I believe. But how could I do it? I need it for the command... (4 Replies)
I wish to install inotify-tools-3.20.1-2.4.x86_64.rpm on Linux and fire inotifywait command.
Initially i was looking for "inotify-tools-3.xx.tar.gz" as instructed here http://jensd.be/248/linux/use-inotify-tools-on-centos-7-or-rhel-7-to-watch-files-and-directories-for-events
I have... (9 Replies)
Dear members, moderators and others.
While working on <insert project>, a need has surfaced to watch a directory, and when a file comes, to do appropriate action.
So, i started writing some shell code, aware of linux inotify-tools package with inotifywait.
Also, i'm seeing a lot of similar... (1 Reply)
Discussion started by: Peasant
1 Replies
LEARN ABOUT REDHAT
pvmfsend
SEND(3PVM) PVM Version 3.4 SEND(3PVM)NAME
pvm_send - Immediately sends the data in the active message buffer.
SYNOPSIS
C int info = pvm_send( int tid, int msgtag )
Fortran call pvmfsend( tid, msgtag, info )
PARAMETERS
tid Integer task identifier of destination process.
msgtag Integer message tag supplied by the user. msgtag should be >= 0.
info Integer status code returned by the routine.
DESCRIPTION
The routine pvm_send sends a message stored in the active send buffer to the PVM process identified by tid. msgtag is used to label the
content of the message. If pvm_send is successful, info will be 0. If some error occurs then info will be < 0.
The pvm_send routine is asynchronous. Computation on the sending processor resumes as soon as the message is safely on its way to the
receiving processor. This is in contrast to synchronous communication, during which computation on the sending processor halts until the
matching receive is executed by the receiving processor.
The PVM model guarantees the following about message order. If task 1 sends message A to task 2, then task 1 sends message B to task 2,
message A will arrive at task 2 before message B. Moreover, if both messages arrive before task 2 does a receive, then a wildcard receive
will always return message A.
Terminating a PVM task immediately after sending a message or messages from it may result in those messages being lost. To be sure, always
call pvm_exit() before stopping.
EXAMPLES
C:
info = pvm_initsend( PvmDataDefault );
info = pvm_pkint( array, 10, 1 );
msgtag = 3 ;
info = pvm_send( tid, msgtag );
Fortran:
CALL PVMFINITSEND(PVMRAW, INFO)
CALL PVMFPACK( REAL8, DATA, 100, 1, INFO )
CALL PVMFSEND( TID, 3, INFO )
ERRORS
These error conditions can be returned by pvm_send
PvmBadParam
giving an invalid tid or a msgtag.
PvmSysErr
pvmd not responding.
PvmNoBuf
no active send buffer. Try pvm_initsend() before send.
SEE ALSO pvm_initsend(3PVM), pvm_mcast(3PVM), pvm_pack(3PVM), pvm_psend(3PVM), pvm_recv(3PVM)
30 August, 1993 SEND(3PVM)