On Tue, 5 Apr 2005 17:41:44 +0200
Christian Parpart <[EMAIL PROTECTED]> wrote:
> The file defines lots of standard software error codes.
Didn't know of this include... will have a look at it :-)
> > while (getline(&line, &len, stdin) != -1)
> > fprintf(out, "%s", line);
> hmm...
On Tuesday 05 April 2005 4:42 pm, Michele Noberasco wrote:
> On Tue, 05 Apr 2005 08:56:04 -0400
[]
> #define _GNU_SOURCE
>
> #include
> #include
#include
> int main(int argc, char *argv[])
> {
> FILE *out;
> size_t len = 0;
> char *line = NULL;
>
> out = fopen
On Tue, 05 Apr 2005 08:56:04 -0400
"Dave Nebinger" <[EMAIL PROTECTED]> wrote:
> You're probably looking at a permissions problem. Sendmail (and other
> mailers) typically run as non-root. Therefore when you are trying to
> open/root/test.data it's probably failing miserably, throwing an
> except
> Here is my code:
>
> #include
> using namespace std;
>
> int main (int argc, char* argv[])
> {
>ofstream out;
>
>out.open("/root/test.data");
>
>for (int x = 0; x < argc; x++)
> out << argv[x];
>out.close();
>return 0;
>
> }
>
> It works fine from the command line
Here is my code:
#include
using namespace std;
int main (int argc, char* argv[])
{
ofstream out;
out.open("/root/test.data");
for (int x = 0; x < argc; x++)
out << argv[x];
out.close();
return 0;
}
It works fine from the command line, but when I try to send mail to it
th
On Monday 04 April 2005 3:03 pm, Michael Sullivan wrote:
> Last year for my birthday my wife bought me a copy of the Sendmail
> Cookbook. As I was browsing through it I found a recipe for making
> sendmail forward mail with a particular address to a program on the
> sendmail's local hard drive. T