Re: Aliases and OpenSMTPD

2024-05-27 Thread didar
On Fri, May 24, 2024 at 11:53:31AM -0600, Charles Curley wrote: > On Fri, 24 May 2024 13:08:56 -0400 > Paul M Foster wrote: > > > There is a colon in my aliases file. I just omitted it in the email. > > Don't do that. Always use copy and paste to convey the contents

Re: Aliases and OpenSMTPD

2024-05-24 Thread Charles Curley
On Fri, 24 May 2024 13:08:56 -0400 Paul M Foster wrote: > There is a colon in my aliases file. I just omitted it in the email. Don't do that. Always use copy and paste to convey the contents of a configuration file. Murphy only know what else you inadvertently left out or added.

Re: Aliases and OpenSMTPD

2024-05-24 Thread Kamil Jońca
it to scan > through aliases, but only on local delivery, not if the email is outbound. > > So does anyone know how to make OpenSMTPD do alias conversions on outbound > mail? Or alternatively, is there a way to hack Debian so that mails > generated from root processes to go an offsite email

Re: Aliases and OpenSMTPD

2024-05-24 Thread David Wright
ckaroo, it > > > arrives. That means this config can do what it's designed to do, > > > basically. > > > However, mails to "root" on buckaroo don't get to yosemite. They should, > > > because my /etc/aliases table looks like this: > > >

Re: Aliases and OpenSMTPD

2024-05-24 Thread tomas
end an email directly to pa...@yosemite.mars.lan from buckaroo, it > > > arrives. That means this config can do what it's designed to do, > > > basically. > > > However, mails to "root" on buckaroo don't get to yosemite. They should, > > > because

Re: Aliases and OpenSMTPD

2024-05-24 Thread Paul M Foster
g can do what it's designed to do, basically. > > However, mails to "root" on buckaroo don't get to yosemite. They should, > > because my /etc/aliases table looks like this: > > > > --- > > ... > > rootpa...@yosemite.mars.lan > > ---

Re: Aliases and OpenSMTPD

2024-05-24 Thread tomas
karoo don't get to yosemite. They should, > because my /etc/aliases table looks like this: > > --- > ... > rootpa...@yosemite.mars.lan > --- Still out of my depth with OpenSMTPD, but... good ol' aliases,of sendmail lore would have a colon after the "root" up t

Aliases and OpenSMTPD

2024-05-24 Thread Paul M Foster
ore information. table aliases file:/etc/aliases table secrets file:/etc/secrets listen on localhost action "relay" relay host smtp+notls://@yosemite.mars.lan:25 auth match from local for any action "relay" --- If I send an email directly to pa...@yosemite.mars.lan from bu

Re: Aliases No longer Works for User

2022-02-26 Thread Stephen P. Molnar
On 02/26/2022 02:54 PM, Erwan David wrote: Le 26/02/2022 à 20:48, Stephen P. Molnar a écrit : On 02/26/2022 02:35 PM, Greg Wooledge wrote: On Sat, Feb 26, 2022 at 02:23:04PM -0500, Stephen P. Molnar wrote: Without any sort of warning as the user, I can no longer use aliases, nor the normal

Re: Aliases No longer Works for User

2022-02-26 Thread Erwan David
Le 26/02/2022 à 20:48, Stephen P. Molnar a écrit : On 02/26/2022 02:35 PM, Greg Wooledge wrote: On Sat, Feb 26, 2022 at 02:23:04PM -0500, Stephen P. Molnar wrote: Without any sort of warning as the user, I can no longer use aliases, nor the normal bash commands on th xfce4-terminal. Root is

Re: Aliases No longer Works for User

2022-02-26 Thread Stephen P. Molnar
On 02/26/2022 02:35 PM, Greg Wooledge wrote: On Sat, Feb 26, 2022 at 02:23:04PM -0500, Stephen P. Molnar wrote: Without any sort of warning as the user, I can no longer use aliases, nor the normal bash commands on th xfce4-terminal. Root is still working without problems. Show us. Paste a

Re: Aliases No longer Works for User

2022-02-26 Thread Greg Wooledge
On Sat, Feb 26, 2022 at 02:23:04PM -0500, Stephen P. Molnar wrote: > Without any sort of warning as the user, I can no longer use aliases, nor > the normal bash commands on th xfce4-terminal. Root is still working without > problems. Show us. Paste a SESSION from your TERMINAL into the

Aliases No longer Works for User

2022-02-26 Thread Stephen P. Molnar
I have just installed Bullseye on a different drive on my main Linux platform. No problems ere encountered and the system booted normally, both as root and as a user (comp). Without any sort of warning as the user, I can no longer use aliases, nor the normal bash commands on th xfce4

Re: User Forgets Aliases

2019-12-16 Thread Greg Wooledge
ly correct: it is *NOT* fine. That is not how you do it. https://mywiki.wooledge.org/DotFiles https://wiki.debian.org/DotFiles You put aliases in ~/.bashrc so that they are read by NON-LOGIN SHELLS such as the one you get when you open an xterm from a window manager, and that xterm is NOT invok

Re: User Forgets Aliases

2019-12-16 Thread Stephen P. Molnar
On 12/16/2019 08:30 AM, Greg Wooledge wrote: On Sat, Dec 14, 2019 at 04:27:39AM -0500, Stephen P. Molnar wrote: I find that I have to source the .bashrc use the aliases. My guess is that you: 1) created a ~/.bash_profile and forgot to tell it to source ~/.bashrc; or 2) altered your

Re: User Forgets Aliases

2019-12-16 Thread Greg Wooledge
On Sat, Dec 14, 2019 at 04:27:39AM -0500, Stephen P. Molnar wrote: > I find that I have to source the .bashrc use the aliases. My guess is that you: 1) created a ~/.bash_profile and forgot to tell it to source ~/.bashrc; or 2) altered your ~/.profile in such a way that it no longer sour

Re: User Forgets Aliases

2019-12-14 Thread Andrei POPESCU
On Sb, 14 dec 19, 04:27:39, Stephen P. Molnar wrote: > For reasons unknown to me, my user seems to have forgotten aliases in > .bashrc! > > I find that I have to source the .bashrc use the aliases. This is rather > inconvenient as I have quite a few aliases that I use all of the

User Forgets Aliases

2019-12-14 Thread Stephen P. Molnar
For reasons unknown to me, my user seems to have forgotten aliases in .bashrc! I find that I have to source the .bashrc use the aliases. This is rather inconvenient as I have quite a few aliases that I use all of the time. Does anyone haw any idea as to what might be going on here? Thanks in

Re: [solved] Re: Setting up aliases to work also in tty* consoles?

2017-06-20 Thread Rodolfo Medina
Greg Wooledge writes: > On Tue, Jun 20, 2017 at 05:32:09PM +0100, Rodolfo Medina wrote: >> Greg Wooledge writes: >> > Once more, from the top: >> > >> > 1) ~/.bash_profile should source ~/.bashrc >> > 2) Shell functions and aliases and shopts and set

Re: [solved] Re: Setting up aliases to work also in tty* consoles?

2017-06-20 Thread Greg Wooledge
On Tue, Jun 20, 2017 at 05:32:09PM +0100, Rodolfo Medina wrote: > Greg Wooledge writes: > > Once more, from the top: > > > > 1) ~/.bash_profile should source ~/.bashrc > > 2) Shell functions and aliases and shopts and sets and other transient > >sett

Re: [solved] Re: Setting up aliases to work also in tty* consoles?

2017-06-20 Thread Rodolfo Medina
Greg Wooledge writes: > On Tue, Jun 20, 2017 at 04:43:25PM +0100, Rodolfo Medina wrote: >> According to what you say, I solved my problem by putting my aliases in >> ~/.bash_profile rather than in ~/.bash_aliases. I don't know if it's >> correct, but it works. >

Re: [solved] Re: Setting up aliases to work also in tty* consoles?

2017-06-20 Thread Greg Wooledge
On Tue, Jun 20, 2017 at 04:43:25PM +0100, Rodolfo Medina wrote: > According to what you say, I solved my problem by putting my aliases in > ~/.bash_profile rather than in ~/.bash_aliases. I don't know if it's correct, > but it works. It's not correct, because that file

[solved] Re: Setting up aliases to work also in tty* consoles?

2017-06-20 Thread Rodolfo Medina
Greg Wooledge writes: > On Tue, Jun 20, 2017 at 04:06:24PM +0100, Rodolfo Medina wrote: >> I settle down permamnent bash aliases by simply putting them in the file >> ~/.bash_aliases; but they only work within X environment. Is it possible, >> and how?, to make them wo

Re: Setting up aliases to work also in tty* consoles?

2017-06-20 Thread Greg Wooledge
als with the "-ls" or equivalent option, which forces a login shell. This is common in academic environments, for example. I think the rationale is that it makes life simpler for non-sophisticated users, who will just put their aliases in whatever dot file they happen to stumble across; forcin

Re: Setting up aliases to work also in tty* consoles?

2017-06-20 Thread Felix Miata
within an X session, you *typically* > get a non-login shell, which reads ~/.bashrc only. . Interesting. Which WM(s)/DE(s) do/does that apply to? 'alias | wc -l' produces same result here whether in vtty or in Konsole, whether root (53) or ordinary user (22), my self-created aliases are all

Re: Setting up aliases to work also in tty* consoles?

2017-06-20 Thread Greg Wooledge
On Tue, Jun 20, 2017 at 04:06:24PM +0100, Rodolfo Medina wrote: > I settle down permamnent bash aliases by simply putting them in the file > ~/.bash_aliases; but they only work within X environment. Is it possible, and > how?, to make them work also in tty1, tty2, ..., i.e. out of

Setting up aliases to work also in tty* consoles?

2017-06-20 Thread Rodolfo Medina
Hi all. I settle down permamnent bash aliases by simply putting them in the file ~/.bash_aliases; but they only work within X environment. Is it possible, and how?, to make them work also in tty1, tty2, ..., i.e. out of graphical surround? Thanks for any help, Rodolfo

spam to aliases and system accounts

2017-04-22 Thread Jonathan de Boyne Pollard
Daniel Pocock: > Do any of the mailers (postfix, exim, etc) provide a convenient way > to exclude delivery to system accounts by default, or to exclude > these aliases and accounts from receiving mail from external senders? > Could anybody share examples of how they do it or pointe

Re: spam to aliases and system accounts

2017-04-20 Thread Daniel Pocock
ore, IIRC, and was ignored. There's also a potential > DoS situation because the default configuration will accept and store mail > for some aliases in /var/mail/, which might be / and could fill up > without the admin noticing, especially if legitimate users have mail moved > elsewher

Re: spam to aliases and system accounts

2017-04-20 Thread Jonathan Dowland
ause the default configuration will accept and store mail for some aliases in /var/mail/, which might be / and could fill up without the admin noticing, especially if legitimate users have mail moved elsewhere (e.g. ~/Maildir) -- ⢀⣴⠾⠻⢶⣦⠀ ⣾⠁⢠⠒⠀⣿⡁ Jonathan Dowland ⢿⡄⠘⠷⠚⠋⠀ https://jmtd.net ⠈⠳⣄

Re: spam to aliases and system accounts

2017-04-20 Thread Brian
On Wed 19 Apr 2017 at 20:15:02 +0200, Daniel Pocock wrote: > When people install Debian (or any distro), they usually get a bunch of > entries in /etc/aliases and various system accounts (/etc/passwd entries > with UID < 1000) created by the packages they install. > > I've

spam to aliases and system accounts

2017-04-19 Thread Daniel Pocock
When people install Debian (or any distro), they usually get a bunch of entries in /etc/aliases and various system accounts (/etc/passwd entries with UID < 1000) created by the packages they install. I've noticed an increase in spammers targeting some of the more common ones. Can the n

Re: exim, mailname and aliases

2012-09-13 Thread lee
do you change the mailname? > BUT this breaks the aliases file. "special" or system users, like > root, are not rewritten to m...@generaldomain.com, they are smarthosted > with their original user id --> r...@generaldomain.com ... What is in your aliases files? In which way

Re: exim, mailname and aliases

2012-09-13 Thread Camaleón
com instead of > themachineshostname.generaldomain.com, all users' mail get delivered to > u...@generaldomain.com (I create users with usernames that exist as a > mail alias/address in that domain). BUT > this breaks the aliases file. "special" or system users, like root, are > not rewritten to m...@

exim, mailname and aliases

2012-09-13 Thread Frank Van Damme
vered to u...@generaldomain.com (I create users with usernames that exist as a mail alias/address in that domain). BUT this breaks the aliases file. "special" or system users, like root, are not rewritten to m...@generaldomain.com, they are smarthosted with their original user id -->

Re: Aliases with `-'

2010-05-06 Thread Merciadri Luca
Sven Joachim wrote: > Syntax highlighting in Emacs' shell-script-mode leaves much to be > desired, so this is not really a bad sign. Does it work if you leave > out the apostrophes? > It worked anyway. But emacs confused me. Sorry! -- Merciadri Luca See http://www.student.montefiore.ulg.ac.be

Re: Aliases with `-'

2010-05-06 Thread Merciadri Luca
Alexander Batischev wrote: > Small note about highlighting — if you add quotes, emacs (and vim, and > any other editor with syntax highlighting as well) thinks that it's a > string and highlight it. If alias name isn't highlighted that doesn't > mean that it won't work. So don't think about highlig

Re: Aliases with `-'

2010-05-06 Thread Alexander Batischev
Small note about highlighting — if you add quotes, emacs (and vim, and any other editor with syntax highlighting as well) thinks that it's a string and highlight it. If alias name isn't highlighted that doesn't mean that it won't work. So don't think about highlighting — everything works ;) Since

Re: Aliases with `-'

2010-05-06 Thread d . sastre . medina
On Thu, May 06, 2010 at 07:31:28PM +0200, Merciadri Luca wrote: > I would like to define an alias with some `-' characters into it, in my > .bashrc. For example, if `this-is-my-alias' is my alias, I would use > > == > alias 'this-is-my-alias'='some command to achieve' > == Hello, It does work he

Re: Aliases with `-'

2010-05-06 Thread Alexander Batischev
On 6 May 2010 20:31, Merciadri Luca wrote: > It simply does not work. Why? I tried without `'' but emacs then stops > highlighting the word, which is no good sign. Thanks. Don't mind about highlighting — alias defined in away like that: $ alias hello-world="echo 'hello world'" will work. Tested

Re: Aliases with `-'

2010-05-06 Thread Sven Joachim
On 2010-05-06 19:31 +0200, Merciadri Luca wrote: > I would like to define an alias with some `-' characters into it, in my > .bashrc. For example, if `this-is-my-alias' is my alias, I would use > > == > alias 'this-is-my-alias'='some command to achieve' > == > > It simply does not work. Why? Don'

Aliases with `-'

2010-05-06 Thread Merciadri Luca
Hi, I would like to define an alias with some `-' characters into it, in my .bashrc. For example, if `this-is-my-alias' is my alias, I would use == alias 'this-is-my-alias'='some command to achieve' == It simply does not work. Why? I tried without `'' but emacs then stops highlighting the word,

issue with aliases

2009-05-05 Thread Chris Scully
I just set up a mail server with exim4 and courier imap. I'm using exim4-heavy. Everything is working as it should /except/ aliases. I have all of the aliases added to my /etc/aliases file. However, when I try to send mail to an alias I get the following ndr (Note: I sent the test me

Re: Where do aliases come from?

2008-12-14 Thread agou
Kent West wrote: According to "man ksh": The following aliases are compiled into the shell but can be unset or redefined: Oh, one of those... Thanks for reading the man page for :-) But it didn't use to be like that; I suppose I can live with them, since I never use them a

Re: Where do aliases come from?

2008-12-14 Thread Kent West
agou wrote: > I have installed the latest stable debian (AMD64) not long ago, and I > am baffled, to say the least by a thing - normally, one of the first > things I do after installing Linux is to hunt down all the "helpful" > aliases that are set up in /etc/profile, ~/.p

Where do aliases come from?

2008-12-14 Thread agou
I have installed the latest stable debian (AMD64) not long ago, and I am baffled, to say the least by a thing - normally, one of the first things I do after installing Linux is to hunt down all the "helpful" aliases that are set up in /etc/profile, ~/.profile, /etc/profile.d etc etc (

Re: Creating aliases/shorcuts for programs in linux [SOLVED]

2008-02-23 Thread BartlebyScrivener
On Feb 23, 5:00 pm, Amit Uttamchandani <[EMAIL PROTECTED]> wrote: > > However, I solved the issue by installing the ROX file manage. And may I say > a beautiful application. Then I simply create a simpling to ~/apps for the > apps that I need and right click on it to and choose "Set Icon..." > >

Re: Creating aliases/shorcuts for programs in linux

2008-02-23 Thread Douglas A. Tutty
On Sat, Feb 23, 2008 at 07:37:57AM -0800, BartlebyScrivener wrote: > On Feb 23, 12:40 am, Amit Uttamchandani <[EMAIL PROTECTED]> wrote: > > > I guess I use the "ln" command right? And also how do I change icons for > > these apps? I will probably set up a lightweight WM for them, something > > l

Re: Creating aliases/shorcuts for programs in linux [SOLVED]

2008-02-23 Thread Amit Uttamchandani
> If you are going the fluxbox route, why not just configure keys, like, > e.g., Ctrl-Alt-f starts Firefox, etc? > > If you want icons on a lightweight window manager, I think idesk is > what people use. I personally just configure key commands. > > http://fluxbox-wiki.org/index.php/Howto_idesk

Re: Creating aliases/shorcuts for programs in linux

2008-02-23 Thread BartlebyScrivener
On Feb 23, 12:40 am, Amit Uttamchandani <[EMAIL PROTECTED]> wrote: > I guess I use the "ln" command right? And also how do I change icons for > these apps? I will probably set up a lightweight WM for them, something like > fluxbox or DWM. So how is changing icons in Linux done? > If you are goi

Creating aliases/shorcuts for programs in linux

2008-02-22 Thread Amit Uttamchandani
Hey guys, Recently moved from Mac OS X to Debian Etch and I was curios as to how to create aliases/shortcuts to programs. I wanted to set up Debian etch for my parents and in their home folder there is going to be a folder called apps. In there will be all the aliases/shortcuts for programs

Re: [OT] Using aliases or functions in bash script

2008-02-01 Thread Michelle Konzack
Am 2008-01-26 16:48:18, schrieb T o n g: > Here is the full OP -- let me try for the last time: ??? > An advanced bash alias expansion question -- > How can I use my aliases or functions in my bash script? > > I have the following alias and function defined in my ~/.bashrc: &g

Re: [OT] Using aliases or functions in bash script

2008-02-01 Thread Michelle Konzack
Am 2008-01-26 17:19:04, schrieb Daniel Dickinson: > and other-script.sh has > > #!/bin/bash > > source ~/.bashrc this is not needed, since the script is non-interactive and source ~/.bashrc automaticaly Thanks, Greetings and nice Day Michelle Konzack -- Linux-User #280138 with the Linux

Re: Using aliases or functions in bash script

2008-01-30 Thread Dan H.
On Tue, Jan 29, 2008 at 05:48:00PM +0100, Александър Л. Димитров wrote: > to be able to handle your daily work quicker. Aliases shouldn't be used in > shellscripts because: > > a) it makes them more difficult to understand (aliases often have very > unintuitive names) fo

Re: [OT] Using aliases or functions in bash script

2008-01-29 Thread Александър Л . Димитров
> Probably better would be to move the function/alias > definitions into a .bash_functions file, source > that from .bashrc and from any scripts that want > the functions and aliases. I think alias definitions should best live in their own file and be sourced from .${SHELL}rc. This way you

Re: Using aliases or functions in bash script

2008-01-29 Thread Александър Л . Димитров
Quoth T o n g: > On Sat, 26 Jan 2008 17:12:56 +, Tzafrir Cohen wrote: > > >> I'm wondering if you have read my OP or not. Read it again pls. > > > > Yes I have. Use functions. Don't use aliases. > > Despite its limitations, why one can't use a

Re: [OT] Using aliases or functions in bash script

2008-01-27 Thread michael
On 27 Jan 2008, at 14:08, T o n g wrote: On Sat, 26 Jan 2008 23:40:02 +, William Pursell wrote: An advanced bash alias expansion question -- How can I use my aliases or functions in my bash script? PS. I even tried the following but it didn't work either: $ bash -O expand_al

Re: [OT] Using aliases or functions in bash script

2008-01-27 Thread Andrew Sackville-West
On Sun, Jan 27, 2008 at 02:23:10PM +, T o n g wrote: > On Sat, 26 Jan 2008 14:59:35 -0800, Andrew Sackville-West wrote: > > > Instead of complaining pointlessly, maybe you could have said > > something like: . . . > > Sorry about my attitude, I was very disappointed that I carefully wrote > t

Re: [OT] Using aliases or functions in bash script

2008-01-27 Thread Celejar
On Sun, 27 Jan 2008 14:23:10 + (UTC) T o n g <[EMAIL PROTECTED]> wrote: > On Sat, 26 Jan 2008 14:59:35 -0800, Andrew Sackville-West wrote: [snip] > > No. I don't want to go back into my archive of 20,000 d-u posts and > > find your OP and read it in close detail now that we are several > > l

Re: [OT] Using aliases or functions in bash script

2008-01-27 Thread T o n g
On Sat, 26 Jan 2008 14:59:35 -0800, Andrew Sackville-West wrote: > Instead of complaining pointlessly, maybe you could have said > something like: . . . Sorry about my attitude, I was very disappointed that I carefully wrote the OP but nobody *seems* to read it carefully. Thanks again to *anyon

Re: [OT] Using aliases or functions in bash script

2008-01-27 Thread T o n g
On Sat, 26 Jan 2008 23:40:02 +, William Pursell wrote: >> An advanced bash alias expansion question -- >> How can I use my aliases or functions in my bash script? > >> PS. I even tried the following but it didn't work either: >> >> $ bash -O expand

Re: [OT] Using aliases or functions in bash script

2008-01-26 Thread William Pursell
T o n g wrote: An advanced bash alias expansion question -- How can I use my aliases or functions in my bash script? PS. I even tried the following but it didn't work either: $ bash -O expand_aliases -c '. ~/.bashrc; (rd /tmp/ttt; alias rd; dt bin; type dt)' The point

Re: [OT] Using aliases or functions in bash script

2008-01-26 Thread William Pursell
T o n g wrote: On Wed, 23 Jan 2008 20:47:15 -0900, Ken Irving wrote: An advanced bash alias expansion question -- How can I use my aliases or functions in my bash script? PS. I even tried the following but it didn't work either: $ bash -O expand_aliases -c '. ~/.bashrc; (r

Re: [OT] Using aliases or functions in bash script

2008-01-26 Thread Andrew Sackville-West
sorry I wasted your time. You know those of us who voluntarily help out here are just that, volunteers. We do it because we like to help and because we enjoy problem solving. But, speaking for myself, I really only like to help those who help us help them. All you have done is post a question

Re: [OT] Using aliases or functions in bash script

2008-01-26 Thread Daniel Dickinson
On Sat, 26 Jan 2008 21:40:12 + (UTC) T o n g <[EMAIL PROTECTED]> wrote: > On Sat, 26 Jan 2008 13:32:57 -0800, Andrew Sackville-West wrote: > > >> >> I'm wondering if you have read my OP or not. Read it again pls. > >> > > >> > source ~/.bashrc > >> > >> Guess that I am having bad lucks

Re: Using aliases or functions in bash script

2008-01-26 Thread T o n g
On Sat, 26 Jan 2008 17:12:56 +, Tzafrir Cohen wrote: >> I'm wondering if you have read my OP or not. Read it again pls. > > Yes I have. Use functions. Don't use aliases. Despite its limitations, why one can't use aliases in scripts? This sounds like "Don&

Re: Using aliases or functions in bash script

2008-01-26 Thread T o n g
se already defined functions/aliases in a > shell script. Thanks a thousand Daniel!!! Finally! there is someone who really read my post and try to understand it before jumping to conclusions. > A possible way around would be to define the functions in .bashrc and > then source .bashrc, but I

Re: [OT] Using aliases or functions in bash script

2008-01-26 Thread T o n g
On Sat, 26 Jan 2008 13:32:57 -0800, Andrew Sackville-West wrote: >> >> I'm wondering if you have read my OP or not. Read it again pls. >> > >> > source ~/.bashrc >> >> Guess that I am having bad lucks now, having two people replied without >> even reading my question, and the two replies are

Re: [OT] Using aliases or functions in bash script

2008-01-26 Thread Andrew Sackville-West
ving two people replied without > even reading my question, and the two replies are the only replies that I > get... how does this not answer your question? Ken suggests that you need to source .bashrc. That makes sense to me. The aliases defined in .bashrc are not in scope unless you sou

Re: Using aliases or functions in bash script

2008-01-26 Thread Wayne Topa
T o n g([EMAIL PROTECTED]) is reported to have said: > Hi, > > A (adv) bash alias expansion question -- > How can I use my aliases or functions in my bash script? > > I have the following alias and function defined in my ~/.bashrc: > > $ alias rd > alias rd=

Re: Using aliases or functions in bash script

2008-01-26 Thread Daniel Dickinson
4, 2008 at 03:55:51AM +, T o n g wrote: > > > > > > > I'm wondering if you have read my OP or not. Read it again pls. > > > > > > Yes I have. Use functions. Don't use aliases. > > > > > > > On command-line: > > > &

Re: Using aliases or functions in bash script

2008-01-26 Thread Tzafrir Cohen
P or not. Read it again pls. > > > > Yes I have. Use functions. Don't use aliases. > > > > On command-line: > > function dt () { > push +$1 And this should do? Is this supposed to be "pushd"? Why the '+'? pushd +1? > } > &g

Re: Using aliases or functions in bash script

2008-01-26 Thread Daniel Dickinson
On Sat, 26 Jan 2008 17:12:56 + Tzafrir Cohen <[EMAIL PROTECTED]> wrote: > On Thu, Jan 24, 2008 at 03:55:51AM +, T o n g wrote: > > > I'm wondering if you have read my OP or not. Read it again pls. > > Yes I have. Use functions. Don't use aliases.

Re: Using aliases or functions in bash script

2008-01-26 Thread Tzafrir Cohen
On Thu, Jan 24, 2008 at 03:55:51AM +, T o n g wrote: > I'm wondering if you have read my OP or not. Read it again pls. Yes I have. Use functions. Don't use aliases. -- Tzafrir Cohen | [EMAIL PROTECTED] | VIM is http://tzafrir.org.il || a Mutt'

[OT] Using aliases or functions in bash script

2008-01-26 Thread T o n g
eplies that I get... Here is the full OP -- let me try for the last time: Hi, An advanced bash alias expansion question -- How can I use my aliases or functions in my bash script? I have the following alias and function defined in my ~/.bashrc: $ alias rd alias rd='rmdir' $

Re: Using aliases or functions in bash script

2008-01-23 Thread Ken Irving
On Thu, Jan 24, 2008 at 03:55:51AM +, T o n g wrote: > On Wed, 23 Jan 2008 23:21:37 +, Tzafrir Cohen wrote: > > >> I have the following alias and function defined in my ~/.bashrc: > >> > >> $ alias rd > >> alias rd='rmdir' > >> > >> $ type dt > >> dt is a function > >> dt () >

Re: Using aliases or functions in bash script

2008-01-23 Thread T o n g
On Wed, 23 Jan 2008 23:21:37 +, Tzafrir Cohen wrote: >> I have the following alias and function defined in my ~/.bashrc: >> >> $ alias rd >> alias rd='rmdir' >> >> $ type dt >> dt is a function >> dt () >> { >> pushd +$1 >> } >> >> How can I use them in my script? . .

Re: Using aliases or functions in bash script

2008-01-23 Thread Tzafrir Cohen
On Wed, Jan 23, 2008 at 11:10:13PM +, T o n g wrote: > Hi, > > A (adv) bash alias expansion question -- > How can I use my aliases or functions in my bash script? > > I have the following alias and function defined in my ~/.bashrc: > > $ alias rd > alias

Using aliases or functions in bash script

2008-01-23 Thread T o n g
Hi, A (adv) bash alias expansion question -- How can I use my aliases or functions in my bash script? I have the following alias and function defined in my ~/.bashrc: $ alias rd alias rd='rmdir' $ type dt dt is a function dt () { pushd +$1 } How can I use

Re: Postfix: local aliases vs virtual mailboxes

2007-12-13 Thread Allan Wind
e accounts then use virtual mailboxes, otherwise use (plain) aliases. I alias all system accounts to root, and root to user accounts for administrators (i.e. me). On my personal work-station I also have a virtual alias: allan [EMAIL PROTECTED] so mail send from this host to myself is deliver

Postfix: local aliases vs virtual mailboxes

2007-12-13 Thread Stephane Durieux
Hello, As a newbie I need advices concerning Postfix accounts method. I am dithering between aliases to local system accounts and virtual mailboxes. I have only a domain to manage (so virtual mailboxes are not mandatory, only an option) But I need a good level of security So : - alias to

Re: bash color aliases

2007-12-06 Thread Cassiano Bertol Leal
ut .bashrc won't. Hope it solves your problem! > Christian > Cheers, Cassiano Leal P.S.: Please don't top-post as it makes it harder to follow long threads. > Cassiano Bertol Leal schrieb: > Christian Ruffer wrote: >>>> Hello, >>>> >>>>

Re: bash color aliases

2007-12-06 Thread Bogart Salzberg
Hash: SHA1 Christian Ruffer wrote: Hello, can you please tell me how to set colors and aliases in my bash. I read the docs and comments, which told me to add or uncomment the lines in /home/user/.bashrc. I did that, but the changes didn't take an effect. For the root user it works when I chang

Re: bash color aliases

2007-12-06 Thread Christian Ruffer
: Hello, can you please tell me how to set colors and aliases in my bash. I read the docs and comments, which told me to add or uncomment the lines in /home/user/.bashrc. I did that, but the changes didn't take an effect. For the root user it works when I change /root/.bashrc How can I chang

Re: bash color aliases

2007-12-06 Thread Cassiano Bertol Leal
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Christian Ruffer wrote: > Hello, > > can you please tell me how to set colors and aliases in my bash. > I read the docs and comments, which told me to add or uncomment the > lines in /home/user/.bashrc. > I did that, but the chan

bash color aliases

2007-12-06 Thread Christian Ruffer
Hello, can you please tell me how to set colors and aliases in my bash. I read the docs and comments, which told me to add or uncomment the lines in /home/user/.bashrc. I did that, but the changes didn't take an effect. For the root user it works when I change /root/.bashrc How can I c

Re: ip / iproute obeleted? Secondary IPs vs. IP Aliases

2007-09-01 Thread Bob Proulx
Jonathan Wilson wrote: > My base minimal net install of Etch for not have the "ip" binary at all. A > search in Debian packages shows that it belongs to "iproute". Correct. > iproute is (obviously) not a default package, and it's last changelog was in > 2006. The Stable release of Debian is "s

ip / iproute obeleted? Secondary IPs vs. IP Aliases

2007-08-31 Thread Jonathan Wilson
I'm trying to install some software that is able to add secondary IP addresses to the computer. I've alway used to useing ip aliases, with ifconfig, for example.: eth0:1 The docs I'm reading recommend using "secondary ips" instead of aliases. It says that IP Aliases a

Exim4, smarthost and local aliases

2007-08-21 Thread Ansgar Esztermann
found that local aliases (/etc/aliases) are ignored. Instead, unqualified addresses are qualified, then sent out. Therefore, mail addressed to root goes to [EMAIL PROTECTED] rather than the actual sysadmins. I thought that even with "no local mail", admin mail should work, but either I'

How do I enable piping to programs in /etc/aliases?

2007-08-09 Thread Thomas Anderson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I am trying to make mailman work with exim4 and need to enable the possibility of piping to programs in the /etc/aliases file. Does anyone know how to do that? The /usr/share/doc/exim4-base/README.Debian.gz file says that piping is disabled by default

Re: host aliases

2007-03-23 Thread Celejar
On Fri, 23 Mar 2007 08:25:44 + Liam O'Toole <[EMAIL PROTECTED]> wrote: > vOn Thu, 22 Mar 2007 20:24:47 -0400 > Celejar <[EMAIL PROTECTED]> wrote: > > > On Thu, 22 Mar 2007 21:40:13 +0100 > > Matus UHLAR - fantomas <[EMAIL PROTECTED]> wrote: > > > > [snip] > > > > > On 20.03.07 15:18, Celeja

Re: host aliases

2007-03-23 Thread Liam O'Toole
vOn Thu, 22 Mar 2007 20:24:47 -0400 Celejar <[EMAIL PROTECTED]> wrote: > On Thu, 22 Mar 2007 21:40:13 +0100 > Matus UHLAR - fantomas <[EMAIL PROTECTED]> wrote: > > [snip] > > > On 20.03.07 15:18, Celejar wrote: > > > Not sure what you mean. How can I access it directly from the > > > internet wi

Re: host aliases

2007-03-22 Thread Celejar
On Thu, 22 Mar 2007 21:40:13 +0100 Matus UHLAR - fantomas <[EMAIL PROTECTED]> wrote: [snip] > On 20.03.07 15:18, Celejar wrote: > > Not sure what you mean. How can I access it directly from the internet > > without knowing the IP address or using the long dynamic DNS name? > > put 'search the.dy

Re: host aliases

2007-03-22 Thread Celejar
On Thu, 22 Mar 2007 21:40:13 +0100 Matus UHLAR - fantomas <[EMAIL PROTECTED]> wrote: > > > On Tuesday 20 March 2007 03:44, Celejar wrote: > > > > I do indeed have my router / dhcp server configured to assign a > > > > specific IP address to the system, (recognized by its MAC address), as > > > > y

Re: host aliases

2007-03-22 Thread Matus UHLAR - fantomas
> > On Tuesday 20 March 2007 03:44, Celejar wrote: > > > I do indeed have my router / dhcp server configured to assign a > > > specific IP address to the system, (recognized by its MAC address), as > > > you suggest. The problem is that I also access the same system over the > > > internet via dyna

Re: host aliases

2007-03-20 Thread Celejar
On Tue, 20 Mar 2007 13:27:08 +0100 Thomas Jollans <[EMAIL PROTECTED]> wrote: > On Tuesday 20 March 2007 03:44, Celejar wrote: > > On Mon, 19 Mar 2007 14:58:57 +0100 > > > > Thomas Jollans <[EMAIL PROTECTED]> wrote: > > > On Monday 19 March 2007 14:48, Celejar wrote: > > > > I don't, in general, kn

Re: host aliases

2007-03-20 Thread Thomas Jollans
On Tuesday 20 March 2007 03:44, Celejar wrote: > On Mon, 19 Mar 2007 14:58:57 +0100 > > Thomas Jollans <[EMAIL PROTECTED]> wrote: > > On Monday 19 March 2007 14:48, Celejar wrote: > > > I don't, in general, know the IP address. I have a system on my LAN, > > > >

Re: host aliases

2007-03-19 Thread Celejar
On Mon, 19 Mar 2007 14:58:57 +0100 Thomas Jollans <[EMAIL PROTECTED]> wrote: > On Monday 19 March 2007 14:48, Celejar wrote: > > I don't, in general, know the IP address. I have a system on my LAN, > ^ > > if it's on your LAN, wh

Re: host aliases

2007-03-19 Thread Celejar
On Mon, 19 Mar 2007 21:45:59 +0200 Andrei Popescu <[EMAIL PROTECTED]> wrote: > Celejar <[EMAIL PROTECTED]> wrote: > > > I don't, in general, know the IP address. I have a system on my LAN, > > accessible on the internet via a dynamic DNS name. I want to refer to > > it by a short nickname. That's

Re: host aliases

2007-03-19 Thread Andrei Popescu
Celejar <[EMAIL PROTECTED]> wrote: > I don't, in general, know the IP address. I have a system on my LAN, > accessible on the internet via a dynamic DNS name. I want to refer to > it by a short nickname. That's exactly what the 'HostName' option in How long are your hostnames? I deliberately choo

  1   2   3   4   >