Hi Pete,

> Well, one common way to do this is to use the presence/absence of a prompt
> string to distinguish between interactive and non-interactive shells.  You
> can check $prompt in csh/tcsh-type shells or $PS1 in sh/bash-type shells.
> You could have the echo set up something like this:
>    if [ "$PS1" != "" ]; then echo "your string goes here" ; fi

Yes! This works great. I have solved the problem. Need to learn some bash
scripting in the future. :)

Thanks,
David



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to