From owner-freebsd-questions Tue Oct 6 12:41:54 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA27511 for freebsd-questions-outgoing; Tue, 6 Oct 1998 12:41:54 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from harfang.CC.UMontreal.CA (harfang.CC.UMontreal.CA [132.204.2.102]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA27478 for ; Tue, 6 Oct 1998 12:41:39 -0700 (PDT) (envelope-from beaupran@JSP.UMontreal.CA) Received: from epsom.jsp.umontreal.ca (epsom.JSP.UMontreal.CA [132.204.45.25]) by harfang.CC.UMontreal.CA (8.8.8/8.8.8) with SMTP id PAA06835 for ; Tue, 6 Oct 1998 15:41:34 -0400 (EDT) Received: from derby.jsp.umontreal.ca (derby.jsp.umontreal.ca [132.204.45.26]) by epsom.jsp.umontreal.ca via ESMTP (951211.SGI.8.6.12.PATCH1502/JSP1789) id PAA25297 for ; Tue, 6 Oct 1998 15:41:35 -0400 Received: from localhost (beaupran@localhost) by derby.jsp.umontreal.ca via SMTP (951211.SGI.8.6.12.PATCH1502/JSP1789) id PAA17278 for ; Tue, 6 Oct 1998 15:41:35 -0400 X-Authentication-Warning: derby.jsp.umontreal.ca: beaupran owned process doing -bs Date: Tue, 6 Oct 1998 15:41:35 -0400 (EDT) From: BEAUPRE Antoine To: freebsd-questions Subject: Using rsh... [off-topic] Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello everybody! I'm sorry if this isn't very FreeBSD specific, but you guys are the best... I tried to play with rsh recently... All of this because I couldn't fetch my mail normally trough fetchmail and similar programs.So I'm tryng to create a shell script using fetch to get the mail and rsh to delete it on the remote. I have achieved a normal login, and been able to pass the command ( echo -n "" > /var/mail/$USER ) normally. But then I tried: rsh -Kl beaupran derby.jsp.umontreal.ca echo -n "" ">" /var/mail/beaupran and after a few seconds, I get: permission denied... how is that possible? Anybody's goot any idea of how I should do this? Trying to simply delete the file using ftp got me permission denied. but the 'echo -n "" > /var/mail/beaupran ' thing worked. How come? thanks! +-----------------------------------+ | Free the world from businessmen | | Free yourself from your money | +-----------------------------------+ Free the web. Spidey visit: http://www.JSP.UMontreal.CA/~beaupran To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message