+ Post New Thread
Results 1 to 6 of 6
  1. #1
    Full Member level 5
    Points: 2,570, Level: 11
    Achievements:
    7 years registered

    Join Date
    Nov 2009
    Location
    india
    Posts
    264
    Helped
    3 / 3
    Points
    2,570
    Level
    11

    I need help to understand what this command line is doing

    Dear Experts,


    Friends, please help me understand this line of command

    %VDB_DIR%\vcshell --echo --out=%VCSHELLDIR%\vcshell.txt --db=%VCSHELLDIR%\vcshell.db 03_project_build.bat

    Thanks in advance,

    •   AltAdvertisement

        
       

  2. #2
    Super Moderator
    Points: 81,448, Level: 69
    Achievements:
    7 years registered
    Awards:
    2nd Helpful Member
    betwixt's Avatar
    Join Date
    Jul 2009
    Location
    Aberdyfi, West Wales, UK
    Posts
    13,351
    Helped
    4459 / 4459
    Points
    81,448
    Level
    69

    Re: I need help to understand what this command line is doing

    %VDB_DIR% is an environment variable set somewhere else. It will probably translate to a directory name where the "vcshell" program is stored. Try typing 'env' at a command prompt to see all the current variables.
    Everything else is passed as a parameter to the vcshell program.
    --echo probably means send the output to the screen
    --out looks like a path (again using %VDB_DIR% as directory name) to a text file called vcshell.txt
    --db is a path to vcshell.db which may be a database as a guess
    03_project_build.bat is another parameter but what it does would depend on the purpose of the vcshell program.

    The parameters and their names are at the whim of the author of vcshell so you would need to find documentation on it to see their exact purpose. Have you tried typing "man vcshell" or "vcshell --help" to see if it has a manual entry of built-in help?

    Brian.
    PLEASE - no friends requests or private emails, I simply don't have time to reply to them all.
    It's better to share your questions and answers on Edaboard so we can all benefit from each others experiences.



    •   AltAdvertisement

        
       

  3. #3
    Full Member level 5
    Points: 2,570, Level: 11
    Achievements:
    7 years registered

    Join Date
    Nov 2009
    Location
    india
    Posts
    264
    Helped
    3 / 3
    Points
    2,570
    Level
    11

    Re: I need help to understand what this command line is doing

    Thanks Brian for the reply.

    Please correct me if I am wrong.
    My understanding is
    03_project_build.bat is being executed from this folder ( %VDB_DIR%\vcshell )

    and vcshell.txt and vcshell.db are the output files to be stored in --out and --db paths

    Thanks



    •   AltAdvertisement

        
       

  4. #4
    Super Moderator
    Points: 81,448, Level: 69
    Achievements:
    7 years registered
    Awards:
    2nd Helpful Member
    betwixt's Avatar
    Join Date
    Jul 2009
    Location
    Aberdyfi, West Wales, UK
    Posts
    13,351
    Helped
    4459 / 4459
    Points
    81,448
    Level
    69

    Re: I need help to understand what this command line is doing

    It depends on what the writer of vcshell decided. When the program is executed, the OS passes the parameters to it and from there they are used for whatever the writer decides. There is no standard for parameters but in general when you see '--' it signifies the start of source or destination path and the next parameter is the file name along that path.

    Although there is no hard rules on file names, it is unusual to use one ending in '.bat' in Linux, they are more common in Windows environments.

    Brian.
    PLEASE - no friends requests or private emails, I simply don't have time to reply to them all.
    It's better to share your questions and answers on Edaboard so we can all benefit from each others experiences.



  5. #5
    Super Moderator
    Points: 31,657, Level: 43
    ads-ee's Avatar
    Join Date
    Sep 2013
    Location
    USA
    Posts
    7,320
    Helped
    1720 / 1720
    Points
    31,657
    Level
    43

    Re: I need help to understand what this command line is doing

    I see you like to cross post on multiple forums...https://stackoverflow.com/questions/tagged/vcshell

    Although there is no hard rules on file names, it is unusual to use one ending in '.bat' in Linux, they are more common in Windows environments.
    Highly unlikely this is on Linux. The directory hierarchy uses \, unless they are trying to port a windows batch command file to Linux I doubt this is being done on Linux.



    •   AltAdvertisement

        
       

  6. #6
    Super Moderator
    Points: 81,448, Level: 69
    Achievements:
    7 years registered
    Awards:
    2nd Helpful Member
    betwixt's Avatar
    Join Date
    Jul 2009
    Location
    Aberdyfi, West Wales, UK
    Posts
    13,351
    Helped
    4459 / 4459
    Points
    81,448
    Level
    69

    Re: I need help to understand what this command line is doing

    I agree ads-ee, but this is posted in the "Linux Software" part of the forum.

    Nevertheless, the rule applies that parameters passed to a program from the command line can be used in any way the program writer chooses and "vcshell" isn't a program I recognize or part of a normal Linux distro. Maybe 'vc' is something to do with Visual C, in which case it definitely isn't Linux

    Brian.
    PLEASE - no friends requests or private emails, I simply don't have time to reply to them all.
    It's better to share your questions and answers on Edaboard so we can all benefit from each others experiences.



--[[ ]]--