Ubuntu :: Send The Command For The Print-screen Function?
Jun 15, 2011
I am writing an expect script and I want to send the command for the print-screen function. So, what is the command? Alternatively, is there some terminal application which may be well suited to take screen-shots via commands from the terminal or automation scripts?
View 2 Replies
ADVERTISEMENT
Apr 5, 2011
I'm currently writing a C++ application to manage some screen functions in Debian(server).
However this issue have bothered me for 2 days now...
What I want to do is to send a command to an attached screen which is running.
Used the following command: Code: screen -S screenwindow So I send a command with the -X parameter, which works just fine... Code: screen -S screenwindow -X stuff yes The command I want to send is "yes" and it does appear in my screen window when I attach it.
But the problem is that I need it to submit it... well I need to press "enter" and I've been looking everywhere on how to do that.
Because right now it hangs on a line like this: Code: Something here, do you want bla bla: yes Obviously I could just press enter myself, but the problem is that it's running as a deamon and but it is supposed to do this all by itself .
So are there any way I can submit it?
View 4 Replies
View Related
Mar 22, 2011
I have two users; user1 and user2. I have a bash script run by user1, that needs to run a command on a screen terminal started by user2.
View 1 Replies
View Related
Jul 31, 2011
Trying to find my way around I have an epson px720 all in one printer. It will print ok but unable to use the scanner function I have tried iscan but with no success.
View 3 Replies
View Related
Jan 20, 2011
in the middle of script, i need to send the output of (send command on line 8) to a file
#!/usr/bin/expect
spawn telnet 172.20.64.133
expect "ENTER USERNAM <"
[cod]....
i treid the below on line 8 :
1- send "show command;
" > logfile.txt : gives an error extra character after the "
2- logsave logfile.txt 'send "show command;
" ': error invalid command
3- i simply tried to send the output of the whole script to file logsave /home/logfile ./script : seems that logsave work under root only
4- ./script > logfile : the problem with this is that the output of echo or (read "enter your id") command will not be displayed on the screen (actually nothing will be displayed, i have to open the log file to see the output). is there any way to save the log of the "send" ? or to save the log of the complete script without hiding the output on the screen?
View 2 Replies
View Related
Jul 18, 2011
I have a Brother MFC-295CN network printer. Been having a heck of a time trying to get this thing working since I installed Ubuntu 11.04 yesterday. I've been away from Linux for some time and am new at using it. Downloaded and installed using the Software Center:
mfc295cnlpr-1.1.2.i386-1.deb
mfc295cncupswrapper-1.1.2-2.i386.deb
brscan3-0.2.11-4.i386.deb
brscan-skey-0.2.1-3.i386.deb
Was able to send a test print and it came out fine. But when I tried to send a print job - nothing. And, the scanner won't work either.
My computer is a Gateway GT5464. It's dual booted with Windows 7.
View 1 Replies
View Related
Jul 29, 2010
I have this function that is supposed to print draw the first image from a function then hide the rest of the images using 'display: none' however for some reason the boolean test does not seem to work on one of my servers however it works on another, is there some php.ini setting I am missing or can you see any issues with the following code:
[Code]....
View 1 Replies
View Related
Mar 29, 2010
I just recently learned about the wonderful little lpr command- and using man -t (bash command) to beautifully print man pages for reference- but is there a way to print both sides of the paper using a printer so equipped?
View 2 Replies
View Related
May 15, 2010
I just installed a Brothers HL2170W printer on my desktop which is running Ubuntu 1004 I had no problem with the install and it is working. The problem is when I send a page to print it takes 5 minutes before it prints. Does anyone know if this is normal or if there is a fix. I have the printer connected with a USB cable.
View 2 Replies
View Related
May 5, 2009
I have a debian system installed on my pc . I have just saved a text file on my desktop . Please let me know how can i print the file through comand prompt ? I need to learn the printing the file thru comamnd line .
View 1 Replies
View Related
Mar 27, 2011
Since I changed my System from openSUSE 11.3 x86_64 to openSUSE 11.4 x86_64 my printer (Samsung ML-2850 via USB) seizes to function (clean installation). The printer connects to two machines via a KVM-switch. On the other machine (Windows 7 x64/Windows XP x64) the printer is working fine. This did not change when I switched the Cables/KVM-ports. In addition, when I was using openSUSE 11.3 x86_64 the printer also worked fine. All necessary CUPS-packages are installed:
[code]...
View 6 Replies
View Related
Sep 9, 2010
this is my code at the moment
PHP Code: <?php
if (isset($_REQUEST['email'])) && $_REQUEST['email']!='0'{
$to = "chrisathisemail";
[code]....
View 5 Replies
View Related
Jun 23, 2011
what is the function of resize2fs command and how this command works internally , how it is related to inodenumber or does it format the partition
View 6 Replies
View Related
Jan 13, 2010
I've been working in a program in BASH and would like to measure its efficiency in different machines. Of course I am able to display the date at the beginning and at the end of its execution, but I'd rather use some sort of timer function to measure in seconds its speed. Is there any timer function available through command line?
View 6 Replies
View Related
Jan 26, 2011
I had a dream least night in which I was on my computer and I was typing the command Netstat -a in command prompt in Ms-Dos. And I was wondering why it looks so much like a Linux terminal command? This question persisted in my mind after I woke up. So what is the story about it?
View 3 Replies
View Related
Jan 16, 2011
I m using Redhat linux 5.1, I want to know what is the function of 'createrepo .' command while installing yum.
View 1 Replies
View Related
Jul 11, 2011
I am trying to find a way to print PDFs from the command line. I was using "cups-pdf', but I want to be able to specify the output folder from the command line. Is there a way to do this? I guess what I am trying to do is the Gnome "Print to file" option in the terminal so I can easily print off a batch of file to whatever directory I wanted.
View 4 Replies
View Related
Feb 28, 2010
I have added mkalias in my .bashrc file as I learnt here
[Code]...
View 1 Replies
View Related
Feb 22, 2011
When I fork multiple processes, is there some command or c function to see the cpu number on which the processes are running?
View 3 Replies
View Related
Sep 10, 2010
I open up 2 xterms on my desktop, A(/dev/pts/0) and B(/dev/pts/1).
I can write from A to B using redirection e.g. echo "test" > /dev/pts/1
How do I run a command from A on B? e.g. "clear"
Ideally I should be able to do this from a script.
View 7 Replies
View Related
May 3, 2010
I have just upgraded to xubuntu 10.04 and although some function keys are working (like volume control), the screen brightness function keys aren't (the screen brightness is at top level and can't be reduced)Notes:I am using a Compaq 610 laptopThe brightness keys are working on Ubuntu 10.04 (live session)How can I fix this?, and at least is there any other way to adjust screen brightness?
View 9 Replies
View Related
Oct 17, 2010
Like the tittle says, i have ubuntu 10.10 on an acer aspire 5738z. But the laptop cant isnt waking up properly from either sleep or hibernate. The screen is black and the machine is running. when i tap onsuspend in ubuntu 10.10 the buttons i get sounds from the speakers. pianoish like.
View 2 Replies
View Related
Oct 5, 2010
The first call to "somefunction" works as expected. The function prints "endfunction" and a process in background sleeps 30 seconds. In the second call I thought it should work in the same way, but the script sleeps 30 seconds before it prints "endfunction".Does someone know the reason of this behavior? Is there another way to do a command substitution of a function that has a background process without have to waiting for that process?
View 2 Replies
View Related
Jan 15, 2011
Is there a way to get a simple 'lock screen' function and Icon that will allow one to lock the screen etc by simply clicking a button? This used to be available in 'xscreensaver' but I cannot figure out how to get a similar function through 'gnome-screensaver'.
View 5 Replies
View Related
Apr 7, 2011
My screen capture software, shutter and system's default "take screenshot", do not function normal any more. It can only capture the desktop wallpaper, not any other elements on the desktop, nor any other opened windows. It's just like taking an x-ray picture by passing all the other objects/elements/running programs on top of the desktop wallpaper. Any ideas? I am using Fedora 14 64 bit. The screen capture software were working fine, though.
View 1 Replies
View Related
Apr 27, 2010
how to use multiple linux cut comman to display on same line ?
e.g ls -il | cut -f6 d:
ls - il cut -f9 -d:
The linux script output is
filename
123
How to use cut to display on same line ?
View 1 Replies
View Related
Dec 29, 2010
Is there a way to extract the last field? Specifying the field number is causing problems using awk or cut as the input log file has the output specified in different lines at different places/fields. The only thing constant is the 'pathname' which always occurs at the end.
View 3 Replies
View Related
Aug 17, 2010
I am trying to write a program that monitors when an lp or basically any sort of print command is issued. If a print command is detected I want to pause that job and ask the user if he / she wants to continue.
This program would run in the background all the time so it can't sit and eat up a lot of cpu. I tried a simple while loop that continuously monitored "ps" and that obviously boosted my cpu to 100%.
View 1 Replies
View Related
Dec 28, 2010
If i have a python file with a function call_me(a,b),how can I call this function from the command line ,after i compile the program?
View 5 Replies
View Related
Apr 28, 2010
I have a computer(Fedora 12 Kde4) playing flash,but the screen will get into sleep mode after a few minutes.But it will not sleep when it plays movies.So I want to know: is there any way to active the screen every few minutes so that the screen will not get into sleep ? It is a remote computer ,all I can do is to send cron job to it ,no SSH. So commands is the best way,but please do not interrupt the flash ? I run this command "xrefresh" to refresh the screen ,but the screen still sleeps.
View 1 Replies
View Related