hello, we have a aix 5.2 server with 8GB of ram. is it possible, without actually removing the hardware, to have the O/S think it has only 4GB of ram? We would like to see how the handles and responds if it only had 4Gb instead of the 8GB. Any ideas or suggestions? Thanks
Looks like i found... (6 Replies)
Hi,
I have a server which is running out of space on the rootvg. When trying to find some spare space I discovered there are 2 sysdump logical volumes, each of 5GB, yet if I get an estimate of the dump size it's only 0.5 GB.
$ lsvg -l rootvg|grep sysdump
hd71 sysdump 20 ... (1 Reply)
Hi All,
The below script I run daily and it consumes 2 hours approx.
In this I am calling another script and executing the same twice.
Is the loop below the cause for the slow process?Is it possible to finetune the program so that it runs in a much faster way?
The first script:
#!/bin/ksh... (4 Replies)
Hi
I have used gzip on AIX and the used paging space has jumped from 7% to 20%. The gzip process is finished since a long time. But the used paging space is still the same. How to release this space ? (1 Reply)
Hi All,
Could some one help me to reduce the code...
if
then
./plist -m "$queuename" |grep $2|awk '{print $3}' >unlock.log
elif
then
./plist -m "$queuename" |grep $2|awk '{print $4}' >unlock.log
else
./plist -m "$queuename" |grep $2|awk '{print $5}' >unlock.log
.
.
.
.
... (1 Reply)
hi all,
i have written the following script that does this work:
1. copy large logs files from one server to another.
2. then unzip this files and extraxt from these large https logs only those fields that are neccesary.
3. then archive the extracted logs to new files.
BUT the problem is... (7 Replies)
Dear All,
I have to reduce the redundancy of a file that is like this:
a b 0
a c 0
a f 1
b a 1
b a 0
b c 1
d f 0
g h 1
f d 1
Basically, this file describe a network with relative nodes and edges.
The nodes are the different letters and the edges are represented by the numbers (in... (7 Replies)
Discussion started by: giuliangiuseppe
7 Replies
LEARN ABOUT PHP
mailparse_uudecode_all
MAILPARSE_UUDECODE_ALL(3) 1 MAILPARSE_UUDECODE_ALL(3)mailparse_uudecode_all - Scans the data from fp and extract each embedded uuencoded fileSYNOPSIS
array mailparse_uudecode_all (resource $fp)
DESCRIPTION
Scans the data from the given file pointer and extract each embedded uuencoded file into a temporary file.
PARAMETERS
o $fp
- A valid file pointer.
RETURN VALUES
Returns an array of associative arrays listing filename information.
+-------------+-------------------------------------------------+
| | |
| filename | |
| | |
| | Path to the temporary file name created |
| | |
| | |
|origfilename | |
| | |
| | The original filename, for uuencoded parts only |
| | |
+-------------+-------------------------------------------------+
The first filename entry is the message body. The next entries are the decoded uuencoded files.
EXAMPLES
Example #1
mailparse_uudecode_all(3) example
<?php
$text = <<<EOD
To: fred@example.com
hello, this is some text hello.
blah blah blah.
begin 644 test.txt
/=&AI<R!I<R!A('1E<W0*
`
end
EOD;
$fp = tmpfile();
fwrite($fp, $text);
$data = mailparse_uudecode_all($fp);
echo "BODY
";
readfile($data[0]["filename"]);
echo "UUE ({$data[1]['origfilename']})
";
readfile($data[1]["filename"]);
// Clean up
unlink($data[0]["filename"]);
unlink($data[1]["filename"]);
?>
The above example will output:
BODY
To: fred@example.com
hello, this is some text hello.
blah blah blah.
UUE (test.txt)
this is a test
PHP Documentation Group MAILPARSE_UUDECODE_ALL(3)