SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
buggy error message behavior
Author Message
Post buggy error message behavior 
hi -- just thought i'd mention this one. this message:
Wrong user: my userid is 0, instead of 507 (backuppc)
seems to go to stdout, rather than to stderr. (there may
be others, i suppose.)

the result was that just now i ended up with a whole bunch of
files that looked like tarballs which contained a compressed
version of that string, as a result of a line that looked
roughly like:
BackupPC_tarCreate <options> | gzip -c >foo.tgz

clearly my script should check for correct user id, but it would
have been nice to see the message on stderr. Smile

paul
=---------------------
paul fox, pgf < at > foxharp.boston.ma.us (arlington, ma, where it's 39.7 degrees)


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Post buggy error message behavior 
Paul Fox writes:

hi -- just thought i'd mention this one. this message:
Wrong user: my userid is 0, instead of 507 (backuppc)
seems to go to stdout, rather than to stderr. (there may
be others, i suppose.)

the result was that just now i ended up with a whole bunch of
files that looked like tarballs which contained a compressed
version of that string, as a result of a line that looked
roughly like:
BackupPC_tarCreate <options> | gzip -c >foo.tgz

clearly my script should check for correct user id, but it would
have been nice to see the message on stderr. Smile

Guess you were surprised how fast it ran Smile.

I'll fix this for 2.1.

Craig


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB