9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi
I am trying to build a web form where it can take the input from the user and write it to a file. And when I will open that form again that for should read the file that was created at the 1st step and all the fields should auto populate from that file. I have 20 text fields in my form. I... (1 Reply)
Discussion started by: sauravrout
1 Replies
2. Shell Programming and Scripting
Hai
#!user/bin/perl
--------
--------
print("$line.......\n");
-------
------
I want to write inside $line into a file like run.log
How i can pleasw tel me
Thanks
kiran (4 Replies)
Discussion started by: kiran425
4 Replies
3. Shell Programming and Scripting
Hi,
I am trying to do a write operation followed by a read operation on the same file through Perl, expecting the output produced by read to contain the new lines added, as follows:
#! /usr/bin/perl -w
open FH, "+< testfile" or die "$@";
print FH "New content added\n";
while (my $line =... (1 Reply)
Discussion started by: royalibrahim
1 Replies
4. Shell Programming and Scripting
can any one suggest me on how to write a update query in perl script for Oracle database and also tell me abt how we can write a code for sending mails with report as attachment to appropriate persons? (1 Reply)
Discussion started by: Ramesh V Kumar
1 Replies
5. Programming
hi, i am a really new to Perl. i have a following code that is working well.
"
i know this is really simple, but i cant figure out a way to do this. can someone help me please?:( (1 Reply)
Discussion started by: usustarr
1 Replies
6. Shell Programming and Scripting
Very new to perl and have an exististing script which I need to capture some variables to a log file. My below code works well, except the @cmds array has some %20 which I need replaced with a space and some <br> which needs a \n instead. I tried messing around with a foreach, but have failed.
... (6 Replies)
Discussion started by: numele
6 Replies
7. Shell Programming and Scripting
Hi Everyone,
There is a perl file: a.pl
============
#!/usr/bin/perl
my $config_file = $ARGV;
open CONFIG, "$config_file" or die "Program stopping, couldn't open the configuration file '$config_file'.\n";
my $config = join "", <CONFIG>;
close CONFIG;
eval $config;
die "Couldn't... (1 Reply)
Discussion started by: jimmy_y
1 Replies
8. Shell Programming and Scripting
Hi
can anyone suggest me how to write a file containing values,... say
19
20
21
22
..
40
to an array @array = (19, 20, ... 40)
-- Thanks (27 Replies)
Discussion started by: meghana
27 Replies
9. Shell Programming and Scripting
Hello friends,
I am having a awk script which does my goal , but I want to learn perl , after learning the basics in perl now I am trying to convert my nawk script to perl .
Please help me to do some task in perl that I ve already did in nawk.
Like I am facing some problem in... (10 Replies)
Discussion started by: user_prady
10 Replies
Ns_Master(3aolserver) AOLserver Library Procedures Ns_Master(3aolserver)
__________________________________________________________________________________________________________________________________________________
NAME
Ns_MasterLock, Ns_MasterUnlock - Enter and leave the single master critical section lock
SYNOPSIS
#include "ns.h"
void
Ns_MasterLock(void)
void
Ns_MasterUnlock(void)
_________________________________________________________________
DESCRIPTION
The single master critical section lock is used throughout the core server to protect portions of code from being run by more than one
thread at a time. These are convenience functions which actually make calls to Ns_CsEnter and Ns_CsLeave to perform the locking and unlock-
ing function.
You should not use these functions in your modules. To protect critical sections in your modules you should create and initialize your own
named locks, then wrap your critical sections with calls to Ns_CsEnter and Ns_CsLeave.
Ns_MasterLock()
Enter the single master lock. The thread that holds this lock is guaranteed exclusive access to the section of code that follows the
call to Ns_MasterLock. Other threads that attempt to enter the master critical section while another thread owns the master lock
will block until the owning thread releases the master lock.
Be extremely careful with code you place within the master critical section. If the thread that owns the master lock blocks for any
reason while in the master critical section, other threads that need to enter that section of code will block until the master lock
is released.
Ns_MasterUnlock()
Leave the single master critical section. The thread that owns the lock must release it after the critical section of code has com-
pleted so that other threads may execute the critical section code.
SEE ALSO
nsd(1), info(n), Ns_CsEnter(3), Ns_CsLeave(3)
KEYWORDS
AOLserver 4.0 Ns_Master(3aolserver)