General :: Prevent Vim From Clearing The Clipboard On Exit

Jun 20, 2011

If I copy text into the xterm clipboard from vim, it is cleared when I exit vim. How do I prevent this?

View 1 Replies


ADVERTISEMENT

Software :: Run What Windows Users Typically Call A Clipboard As A Network Service On My Small LAN / Clipboard / Notepad?

Mar 18, 2011

I'd like to have a Linux machine run what Windows users typically call a clipboard as a network service on my small LAN (about 10 machines). More specifically I am looking to have Linux run the clipboard service centrally in the LAN with both Windows and *nix machines able to connect to it as opposed to the peer-to-peer sync model that I am seeing in almost all of the applications I've discovered thus far.

View 2 Replies View Related

Programming :: Exit In Script Files Cause Konsole Terminal Itself To Exit?

Apr 11, 2010

I noticed that if I have "exit" in a bash script file., e.g. script.sh,that when the word "exit" is reached, and the script file being executed is not in the PATH nvironment, i.e. ". script.sh", the whole konsole shell profile is exited! What gives here? Is there another command compatible to "exit" to prevent this, or will I just have the leave the "." part in the PATH enviroment, which is, to my understanding, is not recommended? I desire for a "goto" function in bash script files

View 11 Replies View Related

Programming :: Why New Threads Exit When Main Thread Exit

May 22, 2010

In linux, creating thread is same as process (clone()), except the virtual address space gets shared with the parent.If a running main process(thread) creates new thread, and if main thread exits, why should the new thread too exit? both are different entities, The same doesn't happen if the child thread exits, the parent thread would be alive.

View 1 Replies View Related

General :: Clearing Error 15 From Grub - File Not Found

Mar 4, 2011

I am using Ubuntu 10.10 dual booted with windows vista. My boot is in a separate partition (sda5). My computer told me that there was limited space on that partition so I tried to clean things up using apt-get by removing old kernels. Turns out I didn't do it correctly because I consistently get an 'ERROR 15' when I shut down and rebooted my computer. I have a live-CD USB-stick so I tried reinstalling grub, (grub-install) updating the menu.lst (update-grub), and manually going through menu.lst and changing to root=(hd0,4) and groot=/dev/sda6. But I still get this ERROR 15 when I reboot.

when I do
sudo grub
find /boot/grub/stage1
find /boot/stage1

Both give me an ERROR 15 message and I'm not sure how to proceed with a diagnosis. When I ran update-grub, occasionally it used to tell me that /etc/fstab may be incorrect. Here is /boot/grub (note that stage 1 does exist!) ( this is /dev/sda5)

Code:
root@ubuntu:/# ls /boot/grub/
default fat_stage1_5 jfs_stage1_5 minix_stage1_5 stage2
device.map grubenv menu.lst reiserfs_stage1_5 xfs_stage1_5
e2fs_stage1_5 installed-version menu.lst~ stage1

Here is my problem
Code:
grub> find /boot/grub/stage1
Error 15: File not found
grub> find /boot/stage1
Error 15: File not found

I guess my main question is, if stage1 can't be found, what does that mean? What should I do next?

View 5 Replies View Related

General :: Hard Drive Full - What To Delete For Clearing Up Space

Nov 13, 2010

Found what takes space but not sure what to delete here is the output of df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 9.2G 157M 8.6G 2% /
/dev/sda5 9.4G 9.4G 20K 100% /usr
/dev/sda6 213G 213G 20K 100% /var
none 1.0G 12K 1.0G 1% /tmp
tmpfs 2.0G 0 2.0G 0% /usr/local/psa/handlers/before-local
How to identify what to delete to clear up space?

View 9 Replies View Related

General :: Clearing Of Memory Allocated By Using Malloc/kmalloc/vmalloc

Aug 8, 2011

Let's analyse this While registering a Char deriver to kernel think that we had allocated memory using any of malloc/kmalloc/vmalloc.

If we forgot to Free that allocated memory while unregistering, will that memory be allocated aside or kernel clears it...?

View 2 Replies View Related

General :: Copy To 'clipboard' From Shell?

Apr 5, 2010

Seems a utility called "xclip" and "xsel" are required, but is there anything simpler, that doesn't require extra utilities, along the lines ofCode:cat foo.txt > clipboardThis would for GNOME.

View 9 Replies View Related

General :: Copy To Clipboard From Within Vi / Vim Without Mouse?

Jun 30, 2011

I want to copy a highlighted field to the clipboard (not the copy/paste within vim but the clipboard that can be pasted outside of vim). I can do this by using the mouse but using the visual command (v) and then the yank command (y) does not do that.Is there a way to do this without the mouse?

View 10 Replies View Related

General :: Copy To System Clipboard Instead Of Vim Buffer

Sep 11, 2010

I would like to set Y and P to copy and paste directly to the system clipboard instead of vim buffer. I don't want any additional commands. Just the normal ones, but they should copy to and paste from the system clipboard and bypass the vim buffer.

View 5 Replies View Related

General :: BASH/Dash : Put A JPEG Or PNG Into The Clipboard?

Dec 5, 2010

copy a jpeg or a png and place it into the clipboard of X11 of my icewm. which program can do cat "myfile.jpg" > ?theclipboardofx11?

View 10 Replies View Related

General :: Copy To Clipboard Using Bash Command?

Sep 18, 2010

Tried this, but there's no such a command in Arch.And this also doesn't work:Code:find ~ | grep -i pidgin | xclipboard Error: another clipboard is already running

View 5 Replies View Related

General :: Sorting In Vi Editor & Copying To Clipboard

May 6, 2010

(1)There should be a command to send content to clipboard instead of 36 buffers available in vi just like ':set paste' allows pasting from clipboard inside vi using ctrl+shift+v in insert mode.(Currently I select area using mouse & right click then copy )


2)Let us say I have sentence "I am young" I want to arrange the words in this line in alphabetical order so that I get 'am I young'. First I thought replacing space by in sentence.Then !#j then type sort -n where # represents number of words.Then #J to join the filteredlines.It works but now I have file with hundreds of sentence of varying length.If I make a macro how will it know the number of words?

View 9 Replies View Related

General :: Bash - Copy Output Into Clipboard Without Using The Mouse?

Feb 5, 2010

Is it possible to copy the output into the clipboard without using the mouse?

For example, I would like to do something like this:

$ pwd >> clipboard

View 2 Replies View Related

General :: Getting HTML Source Or Rich Text From The X Clipboard

May 22, 2010

How can rich text or HTML source code be obtained from the X clipboard? For example, if you copy some text from a web browser and paste it into kompozer, it pastes as HTML, with links etc. preserved. However, xclip -o for the same selection just outputs plain text. I'd like to pull the HTML out and into a text editor.

View 2 Replies View Related

General :: Copy A Picture To Clipboard From Command Line?

Jun 24, 2011

I can copy image in Gimp and paste it to OpenOffice document.

How to do it (copy or paste image) from command line?

View 1 Replies View Related

General :: Perform Action When Clipboard Contents Match Regex?

May 20, 2011

I use the Actions feature of KDE's Klipper utility to run certain commands when I copy something into the clipboard that matches a particular regular expression. Unfortunately, I have to turn on Enable Clipboard Actions and select the command from a menu every time I copy something that I want to run the command on. I'd like to have that command run automatically instead.

You'd think this was possible, as there is an automatic checkbox in the action settings dialog box:

Unfortunately, that appears to do nothing. The documentation included with Klipper does not indicate what that checkbox is supposed to do.

Is it possible to configure Klipper to run a command automatically if the contents of the clipboard matches a regular expression? If not, is there another way to accomplish this?

View 1 Replies View Related

General :: Make Ubuntu's Terminal Program Automatically Copy To Clipboard Selected Text / Paste

Jul 6, 2011

i'm used to using putty on a window's machine.With putty whatever you select is automatically on the clipboard without having to right click and select copy.And right click just pastes.

View 1 Replies View Related

General :: My Script Won't Exit ?

Feb 11, 2011

When I run my script(attachment) and I use an option(-l -u -r) that requires an argument, it should exit if the argument isn't supplied, but it doesn't. How do I arrange this?

View 1 Replies View Related

General :: Fork Process Will Not Exit - Ksh

Aug 19, 2010

I've a script that forks to another script.

The problem is that the child will not return to main process.

Main script "fork.sh"

Code:

The child process "smb_fork.sh"

Code:

when running it from the terminal "sh -x ./foork.sh"

Code:

My goal is via cron connect to ~100 remote winXP computers and download a single file. There fore I like to fork the process.

View 1 Replies View Related

General :: Way To Execute Top Command Once And Exit ?

Jan 6, 2010

Is there a way to execute top command once and exit...i.e. stop refreshing window and continue console without pressing 'q' or 'ctrl+c'...

View 3 Replies View Related

General :: Firefox: How To Disable Exit Alerts

Feb 3, 2010

Sometimes the website will show an alert box akin to "Are you sure you want to leave?" when you try to leave the site. Is it possible to disable this from happening, without using something like the NoScript extension?

View 3 Replies View Related

General :: Ssh Exec Command And Exit Session

Jan 13, 2011

is it possible to execute command and terminate session all in one phrase

something like this connect to server hostname and than execute command "ls" and than some command

ssh username"at"hostname ls "something"

without "something" this phrase connects to server and lists directory, I need something that after listing directory, terminates session.

View 1 Replies View Related

General :: Exit Mail In Shell Script

Feb 15, 2010

I have a shell script that creates a file and at the end I want to mail the contents of the file to myself or a group.

Here is what I have but I the script halts and I have to hit <ctrl-d> the n I receive an EOT and the mail is sent.

What I need:
- how to terminate the mail to where is terminates automatically
- can I cat the file contents instead of using -a

View 1 Replies View Related

General :: Centos 5.6: How To Let Man Pages Remain After Exit

May 23, 2011

Running man, upon exit "erases" what man was displaying. I'd like to leave it up so I could scroll back through it. Is this a function of the PAGER or MANPAGER environment variables?

View 4 Replies View Related

General :: How To Exit Out Of The Calling Shell Script

Aug 18, 2009

I have 2 shell scripts, script1.sh and script2.sh. I call script2.sh from within script1.sh ( by simple ./script2.sh command). Based on some condition, i use exit 0 to exit out of script2.sh. I was trying to find if i can exit out of script1.sh as well at once. below is the example

script1.sh
#!/bin/bash
echo "Before ..."

[code]....

When i execute below is the output

Before ...
There was problem file is empty
The Script will Exit. Please fix the issue and run again...
After ...

I am trying to exit out of script1.sh as well so that i dont print "After ..."

View 3 Replies View Related

General :: Installation Not Starting - Unexpected Exit

May 14, 2010

Can't install linux on PC. Get the massage "Starting udev... udevd-work[137]: 'sbinblkid -o udev -p/dev/tmp-blo k-7:14' unexpected exit with status 0x000b.

View 3 Replies View Related

General :: Unable To Save And Exit From Vi Editor?

Nov 10, 2010

i have done something while changing permission in vi editor. now when i open any file, i am not able to save and exit from it. when i type esc+shift:wq after opening a file. it says cant open file in write mode.

View 5 Replies View Related

General :: Tomcat Stops Running When Exit The Terminal

Jul 10, 2011

I am trying to run Tomcat on Ubuntu System from a remote host. However, when I exit the terminal, Tomcat process shuts down.

The command I am using to run it is

nohup ./startup.sh &

View 1 Replies View Related

General :: Return -1 Of Main But Get Exit Code Is 255? Why? Pls Advise.

Jun 28, 2011

I learn C++ reading the <C++ primer 4th>, question1.2 let me test if return -1 how the compiler handle this exit code.
and in gcc (GCC) 4.1.1 20070105 (Red Hat 4.1.1-52), I get this show:

[youxi600@Arthas C++ Primer]$ cat q1_2.cpp
int main()
{
return -1;
}
[youxi600@Arthas C++ Primer]$ gcc q1_2.cpp -o q1_2
[youxi600@Arthas C++ Primer]$ ./q1_2
[youxi600@Arthas C++ Primer]$ echo $?
255
[youxi600@Arthas C++ Primer]$
anyone can give me an advise? Many thanks!

View 13 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved