LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-23-2010, 09:42 AM   #1
Flip69
LQ Newbie
 
Registered: Jun 2007
Posts: 7

Rep: Reputation: 0
Question 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 ?
 
Old 12-23-2010, 09:46 AM   #2
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850
Hello Flip69,

wich editor and which terminal are you using?

Markus
 
Old 12-23-2010, 10:06 AM   #3
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,790

Rep: Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590
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
Then edit build.sh, remove "Configure Command => " and the simple quotes around ./configure and execute it from inside the php sources directory, like:
Code:
sh build.sh
Regards
 
Old 12-24-2010, 12:56 AM   #4
Snark1994
Senior Member
 
Registered: Sep 2010
Location: Wales, UK
Distribution: Arch
Posts: 1,632
Blog Entries: 3

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
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?
 
Old 12-24-2010, 03:02 AM   #5
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850
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
 
Old 12-24-2010, 03:07 AM   #6
Flip69
LQ Newbie
 
Registered: Jun 2007
Posts: 7

Original Poster
Rep: Reputation: 0
@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.

Last edited by Flip69; 12-24-2010 at 03:57 AM.
 
Old 12-24-2010, 04:16 AM   #7
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850
Flip69, do you mean you want to copy&paste from a host into a virtual machine?

Markus
 
Old 12-24-2010, 04:20 AM   #8
Flip69
LQ Newbie
 
Registered: Jun 2007
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by markush View Post
Flip69, do you mean you want to copy&paste from a host into a virtual machine?

Markus
Yes, exactly, but I was succesfull doing it with Putty, any better terminal emulators out there ?

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
 
Old 12-24-2010, 04:26 AM   #9
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850
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
 
Old 12-24-2010, 04:29 AM   #10
Flip69
LQ Newbie
 
Registered: Jun 2007
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by markush View Post
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
Sharing and transferring files is not the problem, I am not able to copy text from a linux editor to the linux command line.
 
Old 12-24-2010, 04:36 AM   #11
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850
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
 
Old 12-24-2010, 06:37 AM   #12
w1k0
Senior Member
 
Registered: May 2008
Location: Poland
Distribution: Slackware, Mint
Posts: 1,252

Rep: Reputation: 205Reputation: 205Reputation: 205
Quote:
Originally Posted by Flip69 View Post
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.
You can copy and paste text with mcedit using the method I descibed here.
 
Old 12-24-2010, 06:44 AM   #13
Flip69
LQ Newbie
 
Registered: Jun 2007
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by w1k0 View Post
You can copy and paste text with mcedit using the method I descibed here.
Thanks for the tip, the thing is I do not have a mouse using the console.

But I got my problem fixed another way.
 
Old 12-24-2010, 06:45 AM   #14
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
But I got my problem fixed another way.
Perhaps you can give the solution?

Kind regards
 
Old 12-24-2010, 06:51 AM   #15
Flip69
LQ Newbie
 
Registered: Jun 2007
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by repo View Post
Perhaps you can give the solution?

Kind regards
It was more a workaround, I used a terminal emulator to get the job done, Putty.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to copy/paste a line in nano editor smp0219 Linux - Newbie 7 01-03-2016 06:40 PM
copy paste fro wondows to vi editor golestani Linux - General 3 02-03-2010 12:18 AM
LXer: xclip Does Copy-and-Paste on the Linux Command Line LXer Syndicated Linux News 0 07-03-2009 01:00 AM
How to copy-paste on command line? jameshao Linux - General 3 02-02-2009 01:14 AM
Copy Paste under command line? Stingreen Linux - General 7 02-10-2002 06:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration