tcsh init-file like bash?

tcsh init-file like bash?

am 14.01.2008 14:29:45 von g4173c

Greetings:

Re: tcsh init-file like bash?

am 14.01.2008 14:33:11 von g4173c

On Jan 14, 8:29 am, T wrote:
> Greetings:

Let's try that again....

In bash I can do:

bash -init-file /path_to_file

I use that with my xterm to get to project directories, like:

xterm -e /bin/bash --init-file foo.sh

How can I do this with the "tcsh", if possible? I have users who use
that
for there shell.

Thanks in Advanced!
Tom

Re: tcsh init-file like bash?

am 14.01.2008 16:16:16 von gazelle

In article ,
T wrote:
>On Jan 14, 8:29 am, T wrote:
>> Greetings:
>
>Let's try that again....
>
>In bash I can do:
>
> bash -init-file /path_to_file
>
>I use that with my xterm to get to project directories, like:
>
> xterm -e /bin/bash --init-file foo.sh
>
>How can I do this with the "tcsh", if possible? I have users who use
>that
>for there shell.

Is there a reason you are not doing this with the default startup files
(.bash* under bash, or .login/.tcshrc in tcsh) ?

If you can do it that way, things will be simpler.

Re: tcsh init-file like bash?

am 14.01.2008 16:52:45 von g4173c

On Jan 14, 10:16 am, gaze...@xmission.xmission.com (Kenny McCormack)
wrote:
> In article ,
>
>
>
> T wrote:
> >On Jan 14, 8:29 am, T wrote:
> >> Greetings:
>
> >Let's try that again....
>
> >In bash I can do:
>
> > bash -init-file /path_to_file
>
> >I use that with my xterm to get to project directories, like:
>
> > xterm -e /bin/bash --init-file foo.sh
>
> >How can I do this with the "tcsh", if possible? I have users who use
> >that
> >for there shell.
>
> Is there a reason you are not doing this with the default startup files
> (.bash* under bash, or .login/.tcshrc in tcsh) ?
>
> If you can do it that way, things will be simpler.

Yup, what we want to do is have a script which will open an xterm, cd
to the sandbox directory, update the
directory from the CVS tree and then sit and wait for interaction. We
have several different projects so we
probably wouldn't want that in the default startup files...

Thanks
Tom

Re: tcsh init-file like bash?

am 14.01.2008 23:17:59 von Maxwell Lol

T writes:

> How can I do this with the "tcsh", if possible? I have users who use
> that
> for there shell.

Did you try ~/.cshrc ?
This gets executed for each new terminal.

You could set en environment variable, and if it's set, the ~/.cshrc
file does something different.

if ( $?SPECIAL ) then
source /usr/local/share/file
endif

Re: tcsh init-file like bash?

am 14.01.2008 23:19:09 von Maxwell Lol

T writes:

> Yup, what we want to do is have a script which will open an xterm, cd
> to the sandbox directory, update the
> directory from the CVS tree and then sit and wait for interaction. We
> have several different projects so we
> probably wouldn't want that in the default startup files...

You can also have the bash startup file set things up, and then execute tcsh