kevin:
let me give you an example program
You have been asked to write a program which ask you to run some exe files from the command prompt.
I belive following steps should be followed:
1)Invoke the command prompt.
2)move to the dir where you have kept your exe file.
3)execute the exe.
I hope you understand what exactly i am looking at.
User Profile
Collapse
-
you answered my question other way, i want to invoke command prompt using a perl script and then execute some commands on it.Leave a comment:
-
thanks very much it works fine now.
Do you have any idea how could i access command prompt using perl script,do i need to use any module?
I want to execute some commands from command prompt.Leave a comment:
-
true it prints all the data as $_[2]..any idea how can i fix it!!Leave a comment:
-
Hi,
following piece of code i tried,and used file::copy module which u had suggested
[CODE=perl]
Fn_Copy("D:\\St icUtils", "$path",
qw(SticConf.exe ,sticpref.exe,s ticdump.exe,sti cclient.exe)
);
sub Fn_Copy {
my $Sourc = $_[0];
my $Destination = $_[1];
@_ = ($_[2],$_[3],$_[4],$_[5]);
foreach ( @_) {
print $Sourc."\\".$_;...Leave a comment:
-
copying files
Hi All,
I want to copy some files from one dir in d:, to another dir in c:, i tried using xcopy but it says too many parameters!!pls give suggestions
another thing i wanted to know is how can i invoke command prompt from perl?? -
how to generate log file??
HI all,
I have writen some perl script to automate some third party web application and i want to generate a log for my perl script.Please post your suggestions on how can i achieve it??? -
win automation
Hello, I am trying to automate a third party application on windows using perl, i am using win spy to identify the fields,it works perfectly for windows applications but not for any other third party application, can you tell me some tool which is capable enough to identify third party applications. -
-
not able to install perl modules using ppm
hi,
i tried installing some perl modules through ppm but geeting an error saying
"could not locate a ppd file for the package". -
hi kevin....do i need to install or add some module to my code before using
the param function as the perl compiler is not recognizing the param function....
i looked into CPAN but i did not got anything concrete....do u have any idea
regarding this??...Leave a comment:
-
tried out whatever you suggested but it does not works.......can you tell me why
not to use the machine path?......sinc e i am working on iis server i saved the
.cgi file in wwwroot dir.......the path i mentioned in the html file is http://localhost/b.cgi...Leave a comment:
-
yes the cgi script is working fine.....i have done a sanity check....Leave a comment:
-
CGI Script - Not getting form value
below is the b.cgi fileCode:<html> <head> <title></title> <body> <form name=name form method=post action=C:/inetpub/wwwroot/b.cgi> enter your name:<input name=name type=text><br> <input type=submit> </form> </body> </html>
...Code:#!/perl/bin/perl5.6.1.exe use strict; use CGI qw(:standard);
-
server installation
hi..while installing apache ...i get a prompt saying to fill server info.....what should i fill in the following fields....?
1)network domain
2)server name
3)administrator email address
any way ..by default it takes some values and even installs but i am not able to run my .cgi files on the server.......is there something i need to change with the above mentioned fields.......pl ease reply. -
-
CGI - Fatal error creating secondary file
Hi
I wrote a cgi code and in output another cgi file is getting created.....jus t
have a look on the code...
here is the output:Code:#!/usr/bin/perl use strict; use CGI::Carp qw(fatalsToBrowser); die ’Some disaster!’; print "Content type:text/plain\n\n"; print "hello";
...Code:Content-type: text/html <H1>Software
-
-
World Executable
while going through some study matterial i found following text:
"Check the permissions on your cgi program. If it is not world executable then it won’t work."
can some one explain me what the text in bold applies to?? -
hi if you are working on windows machinr install .msi file for apache it works....Leave a comment:
No activity results to display
Show More
Leave a comment: