🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: ch.comp.os.linux
Article #22000

Re: alias news='su - news; echo "y"'

#22000
From: Marc SCHAEFER
Date: Fri, 04 Jun 1999 00:00
14 lines
952 bytes
Sven Kirmess <Sven.Kirmess@gmx.net> wrote:
> alias news='su - news; echo "y"'

su - news -c 'echo y'  # this goes news, and execute echo y as news.

More practical example:
   su - news -c 'bin/ctlinnd newgroup ch.comp.os.linux'

The shell is terminated after.

> werden aber beide echo's ausgef�hrt? Kann man eine Loginshell nicht mit
> einem weiteren Befehl verbinden?

I am not very good with shell aliasing.
Technical Details
Message-ID: <7j7tkf$l4p$1@vulcan.alphanet.ch>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <3756E805.9D0E706D@gmx.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: f4b73,638b382d874ceee0
X-Google-Attributes: gidf4b73,public
From: Marc SCHAEFER <schaefer@alphanet.ch>
Subject: Re: alias news='su - news; echo "y"'
Date: 1999/06/04
Message-ID: <7j7tkf$l4p$1@vulcan.alphanet.ch>
X-Deja-AN: 485581666
Content-Transfer-Encoding: 8bit
References: <3756E805.9D0E706D@gmx.net>
Organization: ALPHANET NF -- Not for profit telecom research
Content-Type: text/plain; charset=ISO-8859-1
Mime-Version: 1.0
Newsgroups: ch.comp.os.linux