tcsh init-file like bash?
am 14.01.2008 14:29:45 von g4173cGreetings:
Greetings:
On Jan 14, 8:29 am, T
> 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
In article
T
>On Jan 14, 8:29 am, T
>> 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.
On Jan 14, 10:16 am, gaze...@xmission.xmission.com (Kenny McCormack)
wrote:
> In article
>
>
>
> T
> >On Jan 14, 8:29 am, T
> >> 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
T
> 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
T
> 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