Re: execution of script in one shell



On Jan 30, 7:12 am, isa...@xxxxxxxxx (Irfan Sayed) wrote:
I am executing one perl script which has one clearcase command
"cleartool setview". after running this command it starts a new shell
and my script stop executing further.

Is there any way so that i can run script including this cleartool
setview command in one shell itself.

It sounds like you may be using the function "exec" when you mean to
be using the function "system" to call your clearcase command. Fix
that.

If that's not the problem, please post a short-but-complete script
that demonstrates your error, so we can see what it is you're actually
doing.

Paul Lalli

.



Relevant Pages

  • Re: shell scripting
    ... and am assuming an sh-compatible shell here.... ... command 1 options arguments ... To run the script, do: ... then you need to use the full path to execute it: ...
    (comp.unix.questions)
  • Re: shell scripting
    ... and am assuming an sh-compatible shell here.... ... command 1 options arguments ... To run the script, do: ... then you need to use the full path to execute it: ...
    (comp.unix.shell)
  • Re: cd.exe
    ... hopefully will use the value of SHELL to invode the command. ... sets up the build environment and invokes bash. ... The script translates ... when invoked from the script though works fine from the command line. ...
    (comp.os.os2.programmer.porting)
  • Re: [ Attn: Randy ] Ad-hoc Parsing?
    ... I can write and compile ... >>programs inside a shell, ... But for me it is essential, that the script ... > internal command), the this script can be executed even if there ...
    (alt.lang.asm)
  • Re: Script to extract portions of text from a text file
    ... > But your example is not comparing the same command. ... it wouldn't be sent to the shell until you press enter). ... >> behaves differently in a script and at the prompt ... While awk does: ...
    (comp.unix.shell)