473,772 Members | 2,965 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to access command prompt using php?

16 New Member
I want to execute all the command that I can execute in command prompt or terminal through PHP. exec() and system() work only for some of the commands. I am working in linux. I installed offline Blast program. I can run this program only from command prompt or terminal and for several hundred files I need to do this. So I want to run this dynamically through programming. But I found that blast program does not work either with exec() or with system() but works fine in terminal. Is there a way to have full access to command prompt or terminal

The command "blastp -query query.fa -subject arabidapsis.fa" worked in terminal. But when given the following command in php it did not.

exec('blastp -query query.fa -subject arabidapsis.fa' ,$a);
Mar 23 '11 #1
0 1278

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

Similar topics

0
1118
by: Eduardo78 | last post by:
I need a routing that anytime I create I command It will be executed in the command prompt. It should be like a kind of loop that anytime I create a command it sends it to the command prompt and execute it. Thanks for any suggestions.
3
5676
by: Rog | last post by:
Yes, I am guessing that typing cmd in the run windows will bring up the command prompt, but not the vs.net command prompt. Is there a switch(s) for accessing the vs.net command prompt? Or do you get to it from the VS.net IDE? Thanks, Rog
4
2840
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
17003
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...
6
39516
by: Shooter4Life8 | last post by:
Hi, I am having trouble figureing out the best way to open a command prompt then write lines to it in VB.NET. Currently I have this code, but it execute's too fast I think because Dim psi As Object = New ProcessStartInfo psi.FileName = "cmd.exe" System.Diagnostics.Process.Start(psi) SendKeys.Send("abcdefg" & "{enter}") SendKeys.Send("12345678" & "{enter}")
1
2458
by: beginner4e | last post by:
hi guys, I am trying to pull up some user information from the command prompt using VB. I read a lot about using the shell function and so on and so forth, but I don't really know how to start it. Could you please give me some suggestions? Or sample codes? Here is a part of the code I did: p.startinfo.useshellexecute = false p.startinfo.redirectstandardoutput = true p.startinfo.filename = "cmd.exe" p.startinfo.arguments = "user"...
8
4779
by: beginner4e | last post by:
hey guys, I need to do a program in VBA that runs the command prompt and gets data from there. Then I should be able to manipulate the data in VBA and store it in a table. Do you have any suggestions, tips, sample codes, ideas? Any help will be highly appreciated. THANK YOU!!!
3
2591
by: dsudhakara | last post by:
How to open command window open using php coding
4
11169
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.
1
4347
by: moondaddy | last post by:
I have a c# 3.0 solution where I need to periodically run a script at the command prompt for certain tasks. I would like to be able to do this from executing some .net code rather than manually coping the path to the script file into the command prompt and then running it. How can this be done? Thanks. -- moondaddy@newsgroup.nospam
0
9620
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
10261
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10104
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10038
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
8934
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6715
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
5482
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4007
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
3
2850
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.