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


ADVERTISEMENT

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 :: 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

Programming :: Perl About System Command / Fails If The Standard Shell Is Dash And Not Bash?

Jun 30, 2011

I am trying to fix a perl script, and I really suck at perl. But I think this problem will be easy for people who know it.

The problem is, I have an old setup script someone wrote many years ago. It fails if the standard shell is dash and not bash. The only way I've gotten it to work is to point /bin/sh to bash. I looked thru the script and it uses "system" many places, and I think that's the problem.

I searched for it and found this link:url

My plan is to include this function:

Code:
sub system_bash {
my @args = ( "bash", "-c", shift );
system(@args);
}
Then I could simply change all calls to system into system_bash and it should work?

The parameter to the system calls is usually some variable. What if the parameter is a list already? Do I need to test for it somehow, and if it's a list, prepend "bash" and "-c" to the list? How do I do that?

In the script there are lots of places like this:

my $error = system($cmd);
if ($error) {
die/warn "some error message";
}

Shouldn't there be a return in the system_bash function?

View 8 Replies View Related

Programming :: Bash: Send Clipboard To Festival?

Jan 24, 2010

How I send clipboard to festival or what is wrong here? #!/bin/bash

text='xclip -selection clipboard -o'
echo '(voice_nitech_us_awb_arctic_hts) (SayText "$text")' | festival

Says only "dollar text" to me. Just this works, but I want other script with different voice: #!/bin/bash
xclip -selection clipboard -o | festival --tts Voice changed here: echo '(voice_nitech_us_awb_arctic_hts) (SayText "say this please")' | festival

View 3 Replies View Related

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

Slackware :: Attempting To "speed Up Boot Time" By Using The "dash" Shell Instead Of "bash"?

Apr 23, 2010

i was attempting to "speed up boot time" by using the "dash" shell instead of "bash"there is a post on here which describes this.i installed the scripts and uhhhh....rebootednow it seems that i kinda sorta forgot to install "dash" before reboot and now ihave no system shell.no root user accessonly my regular user works, kinda...it seems that i cannot edit anything eitherit won't do any temp dataso with mc i cannot save any edited files.....prompt looks like thismichael@(none):i am hoping i just need to install dash....but with limited power at the command prompt this may be interesting.

View 5 Replies View Related

General :: Why Does Md5sum Return A Dash At The End

Apr 19, 2011

why does md5sum return a dash at the end:

Code:
$ md5sum
string290350295 -

How can I remove this using the md5sum tags?

View 2 Replies View Related

General :: Passing Options To A Program: What's The Convention For One Dash Vs Two?

Mar 20, 2011

Some programs will take options like this:$ someprogram -orange apple

And other programs will use something like this:

$ otherprogram --orange apple

Is there a "rule" or convention for this in Linux/Unix/OSX?

View 2 Replies View Related

General :: Make A .flv From A Bunch Of Jpeg-s?

Aug 17, 2010

I have a bunch of jpeg and want to make a single flv video file from it.

I need flv/mp4 (vp6/h264 codecs).

It must be done via console command on Linux.

View 1 Replies View Related

General :: Create A Png Or Jpeg File Programmatically?

Oct 3, 2010

Given a matrix with 0,1 entries, how can I create a graphic in linux such that we have a black square or pixel if the entry is one and white otherwise?

For example, if the matrix is:

0001000
0011100
0111110
0000000

then I want a graphic that looks like:

[code]....

I will be working with many large matrices, e.g. 1000x1000, or 5000x1000 so I need to do this automatically.

View 6 Replies View Related

General :: Does Linux Support Images In .jpeg Format?

Jun 29, 2010

Does linux support images in .jpeg format? What is the difference if I save my image in .jpeg or .JPEG or .jpg from a linux point of view? Is this case sensitive?

View 5 Replies View Related

General :: Best Utility For Opening JPEG / PNG And TIFF Files?

Aug 21, 2010

Which is the most commonly used utility for opening .jpeg, .png and .tiff files on Linux?

View 3 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 :: 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 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 :: 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

Ubuntu :: Where Is The Top Panel And Dash

Aug 13, 2011

I did install awn and setup. Nice look I got, but, some mess I must did, and the top/bottom panel disappeared, and the dash did too. After some search on the web, got back top panel, although it is not automatic, I must to start it.

View 1 Replies View Related

Fedora :: Gnome 3: Add Link To Dash?

Jul 31, 2011

In Fedora 14 I used to have some links to often used folders in the top panel, and now I would like to have some shortcuts in the Gnome 3 dash. I tried adding a custom launcher to the applications menu using alacarte, but it doesn't show up there. There is, however, an entry in alacarte-made.desktop. Is there any way to accomplish this?

Code:
#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Type=Link

[Code].....

View 2 Replies View Related

Ubuntu :: Em Dash, Remapping Key Combinations?

Apr 16, 2010

I have this crazy idea to map an em dash to AltGr+Dash, replacing the yen symbol currently produced by that key combination. Is there a way to do that?

Unless, of course, there is another way to produce an em dash with the US International keyboard? Not including OpenOffice's autocorrect feature.

View 5 Replies View Related

Ubuntu :: ESC Character In Dash Shell

Oct 21, 2010

when I try to enter an escape sequence in the interactive mode of dash, it keeps on spewing out the <ESC> character as ^[ displayed in plain text instead of catching it as a control character. I vaguely remember encountering this on some UNIX shell but for the life of me I can't find anything on it. So how do I properly enter escape sequences in dash's interactive mode? (it supposedly supports vi line edit mode but I can't access it at all because of the ESC situation)It's not a make-or-break thing.

View 2 Replies View Related

Ubuntu :: Remove The 3 Whitespaces And Dash?

Apr 27, 2011

im having some trouble with Md5sum, when i run

Code:
echo -n AlBgNb5Q5gic | md5sum

i get the hashed string with 3 white spaces and a dash, how do i remove the 3 whitespaces and dash? I need it to match with md5 over at mysql server but it fails, i'm guessing the problem is with the whitespaces and the dash

View 2 Replies View Related

Ubuntu :: Remove A Shortcut From Dash?

Sep 1, 2011

I have Ubuntu 11.04, upgraded from 10.10, and I'm logging into the default Ubuntu, Unity. In Dash, if I search for "firefox", I get three results:

Firefox Web Browser
Mozilla Firefox
Mozilla Firefox (Safe Mode)

Clicking Firefox Web Browser brings up Firefox just fine. But both Mozilla Firefoxes do nothing. I have a feeling that they're left over from Wine, but I'm not sure. The Uninstall Wine Software program doesn't show Firefox, but I may have uninstalled it through there a long time ago.

I want to remove these shortcuts from Dash. I tried checking the Main Menu program, but Mozilla Firefox isn't in there (though Firefox Web Browser is). I looked in /usr/share/menu/, and found a file called "firefox". That file specifies a title of "Firefox Browser", so I'm not sure if it even applies. The command it gives, "/usr/bin/firefox", is good, anyway. I don't see any other firefox related file there.

So, does anyone know how I remove those shortcuts from Dash?

View 1 Replies View Related

Ubuntu :: Natty - What Is New About Unity New Look Dash

Mar 4, 2011

I have read about it, looked at screen shots of it but I don't think Unity runs on a virtual machine yet so I have not laid hands on it. Still it looks to me like a remake of the old Windows 3.x "program groups" concept (at least it was called something like that back before the fall of the Roman empire). Looks like a waste of space to me to have all the program and file icons in a box instead of tucked out of the way along a panel.

View 1 Replies View Related

General :: Write A Literal Bash Command In A Bash File?

Nov 29, 2010

I create a bash script that writes another bash file. But in the generated bash file I want to write a bash command in the file and not executing it.Here's my bash file:

Code:
#!/bin/bash
cat > ~/generateGridmix2data.sh << END

[code]...

View 6 Replies View Related







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