Hi

On 25/02/2008, daniel <[EMAIL PROTECTED]> wrote:
>  Fatal error (bad version): stdin: is not a tty
[...]
>  I added in the client's /root/.cshrc
>
>
>  if ( ! $?USER || "$prompt" == "" || ! $?term ) then
>         exit
>     endif
>
>  I ran the same command and i get the same error:
>  Fatal error (bad version): stdin: is not a tty
>  Any ideas? Thanks in advance

It's first of all not a good idea to "exit" from .cshrc. That file is sourced,
not run as a script, so an "exit" would cause whatever you're trying to
run to just fail silently.

My csh is very rusty, but from the man page it seems that to test for
a non-interactive shell you just test whether $tty is empty.

-- 
cheers,
-ambrose

Yahoo and Gmail must die. Yes, I use them, but they still must die.
PS: Don't trust everything you read in Wikipedia. (Very Important)

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
BackupPC-users mailing list
[email protected]
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Reply via email to