working in different prompts

hi

i want a script which would invoke a different prompt and execute commands in that prompt and comes back. Is it possible?

Which flavour of unix you are using.
for solaris if you want to change your prompt
echo $PS1 will tell you the prompt.
you neet to type
PS1=#
or
PS1=@

or
PS1="`hostname`{`logname`}"
whatever you want.Then execute the coomads whichever you want.

then press ^d you will be taken out of that shell.
you will again prompt to the original shell.

Thanks
Namish

What kind of prompt ? A new shell or a new xterm window ?

For xterm, you can probably use

xterm -e <progname> [args]

See man xterm for more details.

For shell, you can use the -c flag i.e.

[k]sh -c

See man sh/ksh

hi

my scenario is like this. i have telnetted to a machine. in that i have to run a process for which i have to change the prompt to say 'XYZ'. then in that prompt i have to stop a process by the command say, 'stop-process'. then i would quit that prompt by 'exit' command
I want a script to do this. the problem is the prompt is changed , but the command s not getting executed. my script luks like this.

#! /bin/csh -f
XYZ
sleep 15
stop-process
exit

how to do tht?