Hi folks...
some process is writing a file....
as soon as the process starts the file comes there, and its growin..
now i in another script want to ftp the file. i don't know if the file is complete or not.
the process which writes the file is some other application and hence can't... (0 Replies)
I'm using PERL on windows NT to try to run an extract of data. I have multiple zip files in multiple locations. I am extracting "*.t" from zip files and subsequently adding that file to one zip file so when the script is complete I should have one zip file with a whole bunch of ".t" files in it.
... (2 Replies)
I am attempting within a for-loop, to have my shell script (Solaris v8 ksh) wait until a copy file command to complete before continueing. The specific code is:
for files in $(<inputfile.lst)
do
mv directory/$files directory/$files
ksh -m -i bg %%
wait $!
done
I am shaky on the... (3 Replies)
hi every one
i got a problem in blinking text
i tried like this
main()
{
initscr();
move(5,10);
addstr("this is blink->");
addch('H' | A_BLINK);
refresh();
getch();
endwin();
}
an error came like this
# cc r3.c
r3.c: In function ‘main':
r3.c:6: error: ‘A_BLINK' undeclared (first... (5 Replies)
Dears all
i have an AIX box in which i am facing a problem with a process as below:
/usr/dt/bin/dtexec -open 0 -ttprocid
and each time i am killing this process with "kill -9" then it run again after a while.
any ideas or solutions will be appreciated. (13 Replies)
Hi experts,
I have a requirement wherein a user is uploading a file to the Landing directory on one of our Linux servers. A cron job is scheduled to run after every 5 minutes which will pick up the files from the source (Landing) dir and copy to the target dir, and once successfully copied to... (4 Replies)
I have the following log file running since yesterday and its consuming so much of the disk space.
-rw-rw-r-- 1 dev dba 4543237120 Nov 10 09:00 load_run_file1_0.1111091224.lg
How do i kill this process. I don't have any idea of stopping this. Any help would be really appreciated.
... (3 Replies)
Hi,
I need to initiate a process script which will start and do some processing and then shuts down. Then i need to other verifications. But the the process takes around 25 to 3o minutes.
One thing i can monitor the nohup.out file for this process where i can wait for shutting down statement to... (3 Replies)
Hello,
I am in need of running an executable provided by a vendor that basically syncs files to a db. This tool can only be run against one folder at a time and it cannot have more than one instance running at a time. However, I need to run this tool against multiple folders. Each run of the... (5 Replies)
I am on SunOS and Linux
I need generic command to get complete process details from which i will eventually extract socket details (listen address and port)
ps -ef | ggrep -i server | ggrep -i mydomaindoes not yield a process that should have both the grep entries along with the listen... (8 Replies)
Discussion started by: mohtashims
8 Replies
LEARN ABOUT ULTRIX
plock
plock(2) System Calls Manual plock(2)Name
plock - lock or unlock process, text, or data in memory
Syntax
#include <sys/lock.h>
int plock (op)
int op;
Description
The call allows the calling process to lock its text segment (text lock), its data segment (data lock), or both its text and data segments
(process lock) into memory. Locked segments are immune to page outs, and the process is immune to swap outs. The call also unlocks these
segments.
The op argument specifies the following:
PROCLOCK Lock text and data segments into memory (process lock)
TXTLOCK Lock text segment into memory (text lock)
DATLOCK Lock data segment into memory (data lock)
UNLOCK Remove locks
Return Values
Upon successful completion, a value of 0 is returned to the calling process. Otherwise, a value of -1 is returned, and errno is set to
indicate the error.
Diagnostics
The call fails under the following conditions:
[EPERM] The effective user ID of the calling process is not superuser.
[EINVAL] The op argument is equal to PROCLOCK, and a process lock, a text lock, or a data lock already exists on the calling process.
[EINVAL] The op argument is equal to TXTLOCK, and a text lock or a process lock already exists on the calling process.
[EINVAL] The op argument is equal to DATLOCK, and a data lock or a process lock already exists on the calling process.
[EINVAL] The op argument is equal to UNLOCK, and no type of lock exists on the calling process.
Restrictions
The effective user ID of the calling process must be superuser to use this call.
Both PROCLOCK and TXTLOCK lock the text segment of a process, and a locked text segment is locked for all sharing processes.
Because the effective user ID of the calling process is superuser, take care not to lock more virtual pages than can be contained in physi-
cal memory. A deadlock can result.
See Alsoexecve(2), exit(2), fork(2), shmctl(2)plock(2)