473,657 Members | 2,447 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

need to open command prompt

13 New Member
I am new to perl script.
How can I open a command prompt/shell and execute my command over there in perl.

I have tried to use System() but its not helping to resolve my issue.

Thanks in Advance
Lav
Apr 22 '09 #1
5 3383
ghostdog74
511 Recognized Expert Contributor
what command are you issuing? The fact is, most probably Perl can handle it on its own without resorting to system calls. (unless you are calling a proprietary application). show your code and example input files if any.
Apr 22 '09 #2
babno
10 New Member
open your terminal. use cd to navigate to the file in which your perl file is stored

cd programs/

then use perl to run it

perl program.pl
Apr 22 '09 #3
lavsaxena
13 New Member
the command that I am trying to run is actually not a system command. This is my work specific command that contains lots of parameters.
The issue is that some parameter values are filepaths and the path could be long and could contain spaces.

While using system() I have to use "\" every place where space or any spl character arrived in the path. So I want to know that If i can open a seprate terminal and type my command over there by only using double quotes for path through perl.
Apr 23 '09 #4
babno
10 New Member
I don't see why you couldn't do that. also use underscore "_"for spaces
Apr 23 '09 #5
Icecrack
174 Recognized Expert New Member
Post what command your trying to call from the system();
Apr 27 '09 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

5
1650
by: Tim Axtelle | last post by:
I am new to Python and am trying to create a standalone exe from a python script using py2exe 0.5.0 and Python 2.3 without success. I am able to generate the appropriate .exe file but it is not executable. Running it does absolutely nothing. The sourceforge site says that wsvc6 is required for py2exe. Is this true? If so, it is contradiction with the python faq which claims that no C compiler is necessary with py2exe. I also tried...
1
10452
by: nfr | last post by:
An example I am looking at says to "Open a Visual Studio.Net Command Prompt", but I can't find any reference to a VS command prompt under, say "File" or "Tools", etc.
7
1539
by: Ben Bean | last post by:
Yes, the online documentation is EXcellent! So I will be using the php.exe in command line mode VERY SOON! I will readily pick up on ALL of the wonderful ways to parse an input file and send output to the DOS console or to a file. This is a special but *utterly* rudimentary desired configuring of PHP package. I downloaded the 7MB PHP package for Windows, unzipped it into a directory, and now I want only to do ONE simple thing: use the...
4
2832
by: Thomas Johnson | last post by:
I am trying to find out how to access the VS 2003 .Net command prompt. I am trying to execute the 'csc' command against a module but have no idea where to find the command prompt. Here's a stupid question --> Could this actually be the MSDOS CMD prompt that I cann access from the start run command?? Thanks in advance. . .Tom Johnson *** Sent via Developersdex http://www.developersdex.com ***
6
16988
by: Jwolf | last post by:
I have .net 2002 edu version and when it installed there was a shortcut to the .net command prompt. My CLR disk is scratched so I can't reinstall and so I just downloaded express. I dont know how to access the command prompt so I can compile basic files from this book I'm reading. I found this really cool resource here that would save me a lot of typing by being able to sense which directory I'm in...
11
1437
by: garyusenet | last post by:
you have mentioned importing actole.tlb into .net in a previous post - i'm trying to interface with an act 6 database - so thought i'd try to import act.tlb using tlbimp - but i'm getting self registration failed. Do you have any sample source on how to open a database in c#? when i used actole in the .net app and tried to connect i'm getting error -87 can't open database... so i thought i should try act.tlb instead, but now im...
12
3000
by: adamurbas | last post by:
ya so im pretty much a newb to this whole python thing... its pretty cool but i just started today and im already having trouble. i started to use a tutorial that i found somewhere and i followed the instructions and couldnt get the correct results. heres the code stuff... temperature=input("what is the temperature of the spam?") if temperature>50: print "the salad is properly cooked." else:
4
11165
by: =?Utf-8?B?UHJpeWE=?= | last post by:
Hi, I know that we can open Visual studio command prompt from start menu. But i have been assigned a task in which i have to do that in coding. So that when i run the c# program, the visual studio command prompt should open. I have seen a syntax for opening the windows command prompt.That Goes like this process.start("cmd.exe"); But dont know how to open the visual studio command prompt. Can anyone help me out.
4
13743
by: itcecsa | last post by:
Hi, I am implementing a small Python project, what I am going to do is to open Matlab and run some M-files, and get some output from Matlab command prompt. I have no idea how to open Matlab from Python! Any suggestions would be appriciated!
0
8397
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8310
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8503
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
5632
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4158
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4315
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2731
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1957
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1620
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.