"c.devise" a �crit :
> 
> Jean-Marc Sac-Ep�e wrote:
> 
> >Bonjour,
> >
> >Quelqu'un sait-il comment d�finir une nouvelle commande � partir d'une
> >commande standard munie d'options?
> >
> >Par exemple, j'aimerais que "lph"  signifie "lpr -Phplj226"
> >
> >JM
> >
> >
> >------------------------------------------------------------------------
> >
> >Vous souhaitez acquerir votre Pack ou des Services MandrakeSoft?
> >Rendez-vous sur "http://www.mandrakestore.com";
> >
> been oui, prendre un �diteur, faire :
> 
> #/bin/bash
> lpr -Phplj226
> 
> sauver le fichier, l'appeler lph, le rendre ex��cutable et le placer
> dans /usr/bin
> 
> OU alors, dans .bashrc , faire un alias
> 
> quoi, j'ai dit des conneries ???
> 
>   ------------------------------------------------------------------------
> Vous souhaitez acquerir votre Pack ou des Services MandrakeSoft?
> Rendez-vous sur "http://www.mandrakestore.com";

Bon, ben j'ai essay� le coup de l'alias:
Voici mon .bashrc

# .bashrc
export MR=/home/jmse/Program/Modulef/modulef99/
export MM=linux
# User specific aliases and functions
alias lph 'lpr -Phplj226'
# Source global definitions
if [ -f /etc/bashrc ]; then
        . /etc/bashrc
fi


Mais quand je fais 
source ~/.bashrc j'obtiens le bizarre

[jmse@jm jmse]$ source ~/.bashrc
bash: alias: `lph' not found
bash: alias: `lpr -Phplj226' not found
bash: TMOUT: readonly variable


Bizarre, bizarre...

JM


-- 
Jean-Marc Sac-Ep�e, Ing�nieur de Recherches,    
Laboratoire de Math�matiques, Universit� de Metz,
T�l 03 87 54 72 69
Fax 03 87 31 52 73
mail [EMAIL PROTECTED]

Vous souhaitez acquerir votre Pack ou des Services MandrakeSoft?
Rendez-vous sur "http://www.mandrakestore.com";

Répondre à