Re: variabile PATH per lanciare script
On 270503, 20:55, Emanuele Rocca wrote:
> > tuttavvia se avvio la macchina e lancio lo script non parte (command not
> > found), se do il comando bash invece funziona.
> > come mai?
>
> Direi perchè ci provi con un utente diverso da root.
no, anche da root
> Mettendo la modifica in /etc/profile la rendi effettiva per tutti gli
> utenti del sistema.
no avevo modificato anche /etc/profile
athlon:~# cat /etc/profile
# /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).
PATH="/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:/usr/local/script"
export PATH
if [ "$BASH" ]; then
PS1='\u@\h:\w\$ '
................
se ad esempio lancio gli script da una consolle sotto X vanno
ciao gianni
--
| Powered by *Debian GNU/Linux 3.0*
| Linux Registered User #297089
| <<UNIX is user friendly, it's just picky about who its friends are>>
Reply to: