If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register or Login
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

use of shell for calling perl from vb 6.0

i have a vb 6.0 program that creates a perl program during runtime...any idea how i can call that perl in next step??am suggested to use shell function of which i know little...how can it be implemented?searched net but didnt find any satisfying answer........

Re: use of shell for calling perl from vb 6.0

dglienna,well, let me explain......i need remote login to different systems to view the alarms on them....for that i hav written a perl script...now the ip addresse to login needs to be changed everytime the script is run...and the ip addresses are selected by the ids of the particular systems(that am loggin in) that is stored in a database(which am retrieving through vb 6.0).......hence i've written code so that the perl script is created during runtime with appropriate ip address......and then now i need to run that perl prog and save those retrieved alarms in a text file......it must be called from vb then.....no? then i need to move the text file value to a string variable in vb 6.0 and then update the database.....dat completes the work........there may be shortcuts......but am learning and doing at same time.......so i found this way.......any suggestions??
i'l get stuck to this work until it wont get finished....

Re: use of shell for calling perl from vb 6.0

I didnt want help to modify the ip addresses....perhaps u fail to understand my query......i asked clearly how can i call a perl script from a vb program..dats all...if i hav already written the code to call perl from vb, there would have been no need for me to ask it.....right?
And i think its a forum to 'give help' and 'want help'......not to criticize anyone for wanting help.....
Thank you dglienna.....

Re: use of shell for calling perl from vb 6.0

I had already said you in another thread you opened in this same forum that is not possible what you want to do. And more it has no sense:

why do you have to call a script when you can easly program it within your own program? It has more sense to call a third-part software when you can't develope the whole program yourself, but if you only need a feature, you can develope it yourself, don't you?

Re: use of shell for calling perl from vb 6.0

As I understand you want to run multiple scripts one after the other.
You have to understand this about the Shell() function: It will start the script, but then will immediately continue execution within the VB program. So the second script might be generated while the first one is still running, thus creating an error.
I think you want to wait within the VB program until one script has finished execution before you create the next one.