03-04-2009
Could please advise if had a chance to look at this?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Does anyone know how to convert this bash shell script to perl?
for i in `ls -l *pgp`
do
`usr/bin/gpg --passphrase-fd 0 $i < .sunspot`
done
Thanks! Any help would be appreciated. I'm new to Linux and perl. (4 Replies)
Discussion started by: freak
4 Replies
2. Shell Programming and Scripting
:confused:
I have 2 files a & b
Contents of a are:-
--------------------------
This is a Good Boy
This is a Good Boy
This is a Very Good Boy
This is a Good Boy
This is a Good Boy
---------------------------
The contents of b are
-------------------
This is Testing Beta... (5 Replies)
Discussion started by: send2sridhar
5 Replies
3. Shell Programming and Scripting
Hi,
I have a sheel script that invokes a perl script...Now, instead havin the perl script as a separate file I'd like put the contents in the sheel script itself...But I am not sure how ro run that perl script contents.please help me
Thanks (1 Reply)
Discussion started by: vijay_0209
1 Replies
4. Shell Programming and Scripting
Hello All,
I want to convert .pl to .exe with all include libraries like:
WIN32/OLE.....
Please suggest me how i will proceed for this.... (7 Replies)
Discussion started by: suvenduperl
7 Replies
5. Shell Programming and Scripting
This is about how to Monitoring folder for new files using shell script
im doing a project using smsserver tools 3. i have used a perl script
to handle incoming messages. the content of each message must be
directed to a java program. this program generates the answer to reply
to the user... (2 Replies)
Discussion started by: x34
2 Replies
6. Shell Programming and Scripting
hello,
i have a lot of C old code I'm updating to C11 with tgmath.h for generic math. the old code has very specific types, real and complex, like cabsl, csinhl, etc
usually for simple bulk replacements i would do something simple like this
perl -pi -e 's/cosl/cos/g' *.c
the reference... (0 Replies)
Discussion started by: f77hack
0 Replies
7. Shell Programming and Scripting
We are using AIX version 7100-03-05-1524
Please provide shell script version (bash or ksh) of below perl code,since we need to have line breaks in huge XML files
#!/usr/bin/perl
#
# Purpose: Read an XML file and indent it for ease of reading
# Author: RedGrittyBrick 2011.
# Licence:... (11 Replies)
Discussion started by: vishwanath001
11 Replies
8. Shell Programming and Scripting
I am working on converting shell to Perl script. In shell we have built in function
trap
Do you know alternative in Perl or actually we don't need it?
Thanks for contribution (3 Replies)
Discussion started by: digioleg54
3 Replies
9. UNIX for Beginners Questions & Answers
Hello. I'm trying to convert an awk script I wrote to perl (which I just started self-teaching). I tried the a2p command but I couldn't make sense of most of it.
Here was the awk code:
BEGIN{
FS = ","
print "NAME\tLOW\tHIGH\tAVERAGE"
a=0
}
{
if(a==0){
a+=1 (1 Reply)
Discussion started by: Eric7giants
1 Replies
10. UNIX for Beginners Questions & Answers
Hello. I'm currently teaching myself Perl and was trying to turn an awk code that I had written into Perl. I have gotten stuck on a particular part and a2p has not helped me at all. The task was to take a .csv file containing a name, assignment type, score and points possible and compute it into a... (1 Reply)
Discussion started by: Eric7giants
1 Replies
madvise(2) System Calls Manual madvise(2)
NAME
madvise() - advise the system of a process's expected paging behavior
SYNOPSIS
DESCRIPTION
The system call permits a process to advise the system about its expected future behavior in referencing a mapped file, an anonymous memory
region, or a shared memory region. Certain implementations can use this information to optimize the use of resources.
addr and len specify the address and length in bytes of the region to which the advice refers. For the address and length must be con-
tained within a successful call to (see mmap(2)) or a successful call to (see shmat(2)); otherwise, fails with an [EINVAL] error.
The behav argument is one the following flags defined in the header
Removes any previous advice and sets the default behavior. By default, the kernel tracks access patterns on data objects and per-
forms I/Os based on process trends (that is, sequential versus random). Sequential trends cause larger "read-ahead" I/Os, while
random accesses reduce the amount of I/O to avoid unnecessary I/O.
Informs the kernel that any objects mapped in this range
will be accessed in a random matter. The kernel will read only the minimal amount of data to satisfy the user fault.
Informs the kernel that any objects mapped in this range
will be accessed in a sequential matter. The kernel will perform the maximum read-ahead for every fault. The kernel does
not pay attention to access patterns and trends, but instead assumes sequentiality for every access on the object.
Informs the kernel that the specified range
is no longer needed by the process. This allows the kernel to release the physical pages associated with an address range
back to the system for use by other processes.
is restricted to object ranges created with calls to and Attempting to use on an object that was not created using a call to
or will result in [EINVAL] being returned to the caller.
Will need these pages.
Ensure that resources are reserved.
WARNINGS
The current implementation of defines and as null operations.
RETURN VALUE
returns the following values:
Successful completion.
Failure.
is set to indicate the error.
ERRORS
If fails, is set to one of the following values.
[EFAULT] The range specified by (addr, addr+len) is invalid for a process's address space, or permission was incorrect on the
object for the behav specified.
[EINVAL] behav contains an invalid value, or addr is not a multiple of the page size as returned by the system call
[EINVAL] The address range specified by addr and len was not created by a successful call to or
AUTHOR
was developed by HP and OSF.
SEE ALSO
mmap(2), sysconf(2).
STANDARDS CONFORMANCE
madvise(2)