Copy-paste from editor to command line
I am trying to upgrade PHP on our linux box ( CentOS ) I copied the configure command from the phpinfo and now I want to execute that.
I am not able to copy the command from an editor in linux to the command prompt, clicking the wheel om my mouse does not work, neither does shift-insert or ctrl-shift-insert. It does work in the editor itself. Is there a way to do this ? Or is there a way to execute the command in linux while it is in the file ? Like a bat file on Windows ? |
Hello Flip69,
wich editor and which terminal are you using? Markus |
Hi,
If you have compiled from source your current running php, then there is a config.nice executable you can copy in the new php sources directory and execute. If not, i.e. you want to compile from sources the newer version using your distro's configure options, you can run Code:
php -i |grep configure > build.sh Code:
sh build.sh |
I echo markush, but all virtual terminals that I have used either support right-click->paste or edit->paste (on the terminal's toolbar) - have you tried either of these?
|
Well, I'm using konsole of KDE. konsole hase a menubar and I use "Edit->copy" and "Edit-Paste". I can copy text from konsole and paste it for example into the browser.
Markus |
@bathory
I could not find config.nice, but the commands you gave me worked fine, thanks for that, really super instructions too btw. Running the command gave me no response though and when I try to do the make it says "No tragets speicified and no makefile found" @everyone else Thanks for the tips, I am using MCEDIT as editor and I am using the console in our VMWare environment, the linux distro is CentOS. Is there a terminal program ( in windows ) that I could use, that would give me the copy paste functionallity ? I am using putty now. |
Flip69, do you mean you want to copy&paste from a host into a virtual machine?
Markus |
Quote:
Seems installing the latest version of PHP on a CentOS is not that straightforward, I will have to use yum to do it and even that will not give me the latest version, but 5.2 will be better than PHP 5.1.6 |
Why don't you share a folder on the host with your virtual machine? Then you could access the files from within your virtual machine.
Markus |
Quote:
|
If your not using a gui, you may take a look at gpm. gpm allows for copy and paste on the console. It is a daemon, e.g. Slackware uses it as a default.
http://www.cyberciti.biz/tips/howto-...operation.html Markus |
Quote:
|
Quote:
But I got my problem fixed another way. |
Quote:
Kind regards |
Quote:
|
All times are GMT -5. The time now is 07:41 AM. |