Search code examples
shellunixprogress-4glopenedge4gl

In unix by using vstart command i connect to db. i want to see code behind vstart cmd?


I am using Progress DB. From Unix we do vstart to connect to Progress DB. I want to know code behind this. How can I do that?

I dont know if that is a unix command or something user created?


Solution

  • which vstart will look for vstart in your active PATH.

    If that doesn't work you will get a message:

    /usr/bin/which: no vstart in (... your path here...)
    

    If that is the case you can use find instead:

    find / -name "vstart"
    

    This will look for vstart in the root-directory and all directories above the root.

    Otherwise you will see something like

    /usr/local/script/vstart
    

    Matching files will be displayed like matching files for which so follow the directions below.

    Change directory to the listed directory: cd /usr/local/script/ and cat or more the file:

    Cat command:

    cat vstart
    

    More command:

    more vstart