karthik.raju has asked for the wisdom of the Perl Monks concerning the following question:

Hi All, i'm starting the artifactory, and it is starting successfully, but it is not coming out the program.
code is 
system ("sh /xx/xx/artifact-3.3.0/bin/artifactory.sh"); print "Done";
This script is giving output as:-
########################################################### ### Artifactory successfully started (6.898 seconds) ### ###########################################################
once it is started, we need to print "done" but this is not happening.

Can you please help me on this.

-Karthik

Replies are listed 'Best First'.
Re: How to come back to the cmd prompt once the command executed
by blindluke (Hermit) on Feb 09, 2015 at 11:57 UTC

    Your script is waiting for the artifactory.sh to finish.

    If you want to run the shell script in the background, and continue with your Perl script immediately, read the Perl FAQ, question: How do I start a process in the background.

    - Luke

      Excellent,

      Thanks a lot Luke, its working.

      Thanks, Karthik

Re: How to come back to the cmd prompt once the command executed
by vinoth.ree (Monsignor) on Feb 09, 2015 at 12:19 UTC
    blindluke++

    Hi karthik.raju,

    As blindluke suggested you need to run the /xx/xx/artifact-3.3.0/bin/artifactory.sh shell script as background process, using '&' so that your main script will continue and print your message "done".


    All is well
      Hi,

      Thanks Vinoth,

      I've done the same and its working fine for me.

      Thanks, Karthik