General :: Prevent Vim From Clearing The Clipboard On Exit
Jun 20, 2011If I copy text into the xterm clipboard from vim, it is cleared when I exit vim. How do I prevent this?
View 1 RepliesIf I copy text into the xterm clipboard from vim, it is cleared when I exit vim. How do I prevent this?
View 1 RepliesI'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 RelatedI 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 RelatedIn 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 RelatedI 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?
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?
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...?
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 RelatedI 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 RelatedI 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 Relatedcopy 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 RelatedTried 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(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?
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
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 RelatedI can copy image in Gimp and paste it to OpenOffice document.
How to do it (copy or paste image) from command line?
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?
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 RelatedWhen 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 RelatedI'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.
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 RelatedSometimes 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 Relatedis 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.
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
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 RelatedI 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 ..."
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 Relatedi 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 RelatedI 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 &
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!