I typed:
to test the at command on my terminal. I got the message:
I waited for a minute but nothing happened. I tried listing at_log.txt, but it said there was no such file. Am I doing something wrong here?
hey programmers!
1-why won't gcc accept as an argument? i tried the recommendations on the man page of getch(),..etc. nothing worked.
2-why it won't see <iostream> && <fstream> even if i implemented the function as follow
std::cout<<"..etc"<<endl;
3-after i type this code in it gives... (6 Replies)
I'm trying to figure out why this if statement won't work:
if || $zipcount != 6 ]]
then
echo ${myline}
echo "ZIPCODE WARNING! ${zipcode} ${zipcount}"
fi
if ]]
then
echo ${myline}
echo "STATE WARNING!... (3 Replies)
Hi guys.
I am trying, to move files found with the find command...
Script runs fine, until it reaches a file that contains spaces...
Here is what i wrote up quickly.
ROOTDIR=/apps/data
SEARCH=$(find /data/HDTMPRestore/home/tmq/ -type f -print | grep Mods/Input/bck | cut -c19-)
for i... (1 Reply)
Hi All,
can anybody tell me what's wrong with this code?
# SEARCH replaced by REPLACE
#!/bin/bash
SEARCH="95$$ 0 t"
REPLACE="95$$ 1 t"
for I in `ls *000.inp | cut -c-12`;
do
echo $I
sed 's/$SEARCH/$REPLACE/' ${I}-000.inp > ${I}-100.inp
done
It don't replace the string... (5 Replies)
Hi! I'm sure that somebody here installed freeBSD from a download of a virtual disc (.iso). But I made 5 downloads of 5 differents freeBSD installation (and no one has worked).Can somebody tell me where to download and how (if needed) to prepare the cd? (8 Replies)
Hi, I have a question.
I define a function using sed command:
replace()
{
searchterm=$1
replaceterm=$2
sed -e "s/$searchterm/$replaceterm/ig" $3 > $WORK'tempfile.tmp'
mv $WORK'tempfile.tmp' $3
}
Then I call
replace 'test = 0' 'test = 1' $myfileThis code works well in... (1 Reply)
Hi, I have a question.
I define a function using sed command:
replace()
{
searchterm=$1
replaceterm=$2
sed -e "s/$searchterm/$replaceterm/ig" $3 > $WORK'tempfile.tmp'
mv $WORK'tempfile.tmp' $3
}
Then I call
replace 'test = 0' 'test = 1' $myfile
This code... (1 Reply)
Hello,
Images won't work on UNIX when I try posting them on my website I'm working on. It doesn't show the image, and it's simply erroring.
Help! Thanks! (5 Replies)
Discussion started by: yazan
5 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)