Ubuntu :: Lpr Command- And Man -t (bash Command - Print Both Sides Of The Paper Using A Printer?

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


ADVERTISEMENT

CentOS 5 :: Printer In GUI Can Print Fine From The Command Line

Oct 6, 2009

I work at The University of Alabama as a sysadmin on various HPC resources and also provide support for faculty using Unix systems. I've run into one problem that is affecting two different desktop systems running CentOS 5.3.oth of these systems have the latest updates. These machines have standard network-attached printers. One is an HP LaserJet 3250 and the other is a model that is pretty close to that one.Previously these users were able to print from graphical applications such as Firefox, but now when the print dialog is opened on ANY graphical application, it causes a hard freeze on that particular app.Printing from the commandline via `lpr` gives no issues and test pages from the Printer Admin interface also succeed.This problem has me stumped, so I'm looking for any insight as to what could have changed. I do not know what changed between the time when the printers worked graphically and when they stopped, but the users assure that they have changed no settings. The only thing I can suspect is a rogue update since this is affecting separate users on separate machines with separate printers.

View 4 Replies View Related

Software :: Pass Print Jobs To A Lexmark Printer With The Lp -o Landscape Command?

Sep 30, 2009

We are running RHEL 5.1 on the 2.6.18.53 kernel. We are attempting to pass print jobs to a Lexmark printer with the lp -o landscape command. The print jobs continue to print "portrait". Is anyone aware of this issue and is there a work-around to get these print jobs to print in landscape format?

View 5 Replies View Related

Programming :: Sed Bash Command - Not Print Backslash In Perl

Jul 11, 2010

This pretend to be a script for rename a lot of files automatically. So I put the list of files in an array named @lista. But, as you can see, at the end of the command I use a sed filter to print out a backslash for those files that have spaces in their names, so the path for those files could be rightly interpreted.

But there's no way I could print a backslash. It works well when I use the Perl's sed substitution s///, but I need every path in the array to be fixed.

I'd like to add that the bash command works perfectly well alone. I mean outside the Perl script.

This is de command line with the sed filter:

Code:

And this is what it brings:

Code:

View 12 Replies View Related

General :: Xargs - How Some Command Receive Input From Both Sides

Mar 9, 2010

I would like to ask the following:
1) ls -l |grep test -> this will grep every "ls -l" output line
2) ls -1 |xargs grep test -> this will grep every single file with test
3) ls -1 |xargs echo -> this will echo directory list
4) ls -1 |echo -> this does nothing!!!

My question is: how some command can receive input from "both sides" (grep can grep whole output or every single file - xargs, the same is for i.e. wc command). 4) echo does nothing (it's a single echo command).

View 1 Replies View Related

Ubuntu :: BASH: Execute Next Command Until Another Command Succeed?

Mar 19, 2010

I have a big bash script ,its goal is to download movie one by one . But I often get into a problem: if this script is executed in cron,it often does not completely download the movie.I often find the movies it downloaded are several KB while the movie is actually 20MB.So I think it is because it did not wait for finishing one task ,and jump to download another.So I want to know ,is there a way to force the bash script to wait until one movie downloaded completely and then start to download another movie ?

View 8 Replies View Related

General :: Bash Command History Update Before Execution Of Command

Jun 7, 2010

Bash's command history is great, especially it is useful when adding the history -a command to the COMMAND_PROMPT.However, I'm wondering if there is a way to log the commands to a file as soon as the Return key is pressed, e.g. before starting the command and not on completion of the command (using the COMMAND_PROMPT option would save the command once the prompt is there again).

I read about auditing programs like snoopy and session recorder like script but I thought they're already too complex for the simple question I have. I guess that deactivating that script logs all the output of the command would lead already in the right direction but isn't there a quicker way to solve that probelm?

View 1 Replies View Related

General :: What Does This Cryptic Bash Command Mean - Why Command Crashes

Mar 20, 2011

Possible Duplicate: What does this cryptic bash command mean? Why this command crashes Linux? :(){ :|:& };:

View 4 Replies View Related

General :: Command To Delete Bash Command History?

May 31, 2010

What's the command to delete bash command history?

View 4 Replies View Related

Programming :: Bash Ambiguous Redirect - Redirect One Command Output Which Will Be Treat As A Content Of File For Another Command?

Mar 9, 2011

I am trying to grep multiple numbers from file, grep does have the -f option for that.

Code: grep -f <`seq 500 520` /etc/passwd I know this could be done with

Code: for i in `seq 500 520`; do grep "$i" /etc/passwd; done But my question is fare more behind this example. It is possible to redirect one command output which will be treat as a content of file for another command ?

View 2 Replies View Related

Slackware :: Load The Paper Then Stop And Not Print

Mar 12, 2010

I swore I wouldn't do it again, but I did it anyway and installed 'current,' but I'm using Xfce not KDE. Everything was working very well, until I tried to print this morning. From Okular it would load the paper then stop and not print. From OpenOffice it would load and print, but the output was garbage.

Finally, I moved copies of what needed to be printed to the Xp partition, booted to Xp, and documents printed out just fine. As noted I'm running Slackware64 'current' with the latest versions of Cups and Hplip. The printer is a HP 940c. Hplip reports everything is fine, as does CUPS when running it in a browser (localhost:631).

View 5 Replies View Related

Hardware :: Wine - Can't Print Properly To Legal Sized Paper

Jul 6, 2011

I'm trying to set up a customer who has two printers attached to their computer one is some sort of okidata color laser printer, which seems to work fine the other one is a brother HL-4040CDN, which prints fine from a Linux based application such as open office.

When i try to print from a program in wine, however, I can't for the life of me get it to print properly to legal sized paper, it doesn't complain about paper size or anything, it simply crops the print size to that of letter sized paper even though I tell it the paper size is Legal.

I have tried setting the default paper size on the printer's firmware settings, I have tried setting the paper size in cups both through the printer preferences applet and the web interface, i have tried telling the program to print to legal paper and the only thing i can affect is which end of the paper it prints to, i have even tried different drivers for CUPS, i'm not sure if the problem is wine, the program, the printer, or how wine talks to the specific printer via cups (the other printer prints fine) i am using ubuntu 10.04 or 10.10.

View 1 Replies View Related

General :: Command To Check The Java Version: Java -versionand Got :bash :java: Command Not Found?

Jul 26, 2010

I've just installed java (jre-6u21-linux-i586.bin) on Red Hat 4.4 AS and issued this command to check the java version: java -versionand got :bash :java: command not found

View 4 Replies View Related

Ubuntu :: Terminal Bash / -bash: Ls: Command Not Found

Jun 5, 2011

I got a problem with terminal, since i'm really a noob with terminal i don't know how to fix it.Everytime i type in a command it shows for example:

-bash: ls: command not found

Even the basic commands don't work... just cd <directory> and those things works

View 9 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

General :: Command Path Is In PATH But Bash Does Not Find The Command

Jul 12, 2011

kernel 2.6.21.5, slackware 12.0
GNU bash 3.1.17

Code:

As you can see, /usr/local/bin is in the path. However, bash does not look for nasm in /usr/local/bin.

If I am root, things go well:

Code:

View 16 Replies View Related

Debian :: Print Command ( Print A File ) In Debian Through Comand Prompt ?

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

Ubuntu :: HP Printer Officejet Pro 8000 Not Load Paper Properly

Aug 16, 2010

I have a HP Officejct Pro 8000 Printer hooked to UBUNTU 9.10 on a system 76 box. The printer is not loading paper properly. I see references to this issue on various websites and I saw at least one reference to new drivers but alas they were all for windows. I checked the repository and I have the latest and greatest HPLIP. Does this mean I have all of the latest drivers?

View 2 Replies View Related

Ubuntu :: Print To PDF From Command Line

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

Fedora Hardware :: HP Photosmart C4400 Series Refuses To Print Photo On 10x15cm Paper?

Feb 22, 2011

I got trouble to print a photo of 10x15 cm to HP Photopaper (which was delivered with the printer itself). I printed from the UI and set the size according to the papersize (both 10x15cm) and just hit print in "High Quality". The paper gets drawn in, but then the tiny LCD screen on the printer tells me - Wrong paper size, please insert a larger paper, I have to hit the Ok/Cancel button on the Printer but the effect is the same, the printer spits the empty photo paper in front of me.Does anyone have a tipp where to look at?

View 12 Replies View Related

Hardware :: Setting - Printer Pulls In Paper But Prints No Image

Nov 1, 2009

I've encountered some problem in setting my printer HP D1560; the printer pulls in paper but prints no image. how to set it running under WinXP?

View 5 Replies View Related

Software :: Command To Print The Last Field?

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

Programming :: Print Command Monitoring ?

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

Ubuntu :: Use Multiple Cut Command To Print Output On A Line?

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

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 View Related

General :: How To Print Command Output To A File

Apr 29, 2010

I am creating a script to sync my important documents between two system. I want my script to generate a log file for the last action. can you suggest me a way to achieve this.Question: If I execute the rsync command with -v flag, it will print a lot of messages on the console. Is there any way. So, I can redirect these logs to a file?

View 4 Replies View Related

General :: Using Find Command To Print Timestamp

May 27, 2010

I am looking for a way to print the timestamp of a directory using find command. I can do that for a file, but for a directory, it is printing the contents of the directory as well. Lets say there is a directory called doc, and there are more than one occurrences of that directory.

find . -name "doc" -type d -exec ls -l {} ;

This is printing the contents of all the files under doc directory as well.

View 3 Replies View Related

Programming :: Using An Awk Command To Print A Line From A Cvs File?

Mar 4, 2011

I am using an awk command to print a line from a cvs file.the awk command includes an if statement that filter the output-lets say i want to print all the lines that the price field is greater than 30.i have it working when i put the parameters myself.. but when i try to send them with vars it wont work..i am sending the sign of the if statement - can only be: == , < , >it looks like this:

cat file.csv | awk -v sign=">" -v field="2000" '{if($3 sign field) printf "%-12s%-12s%-12s%-12s
",$1,$2,$3,$4}' FS=,

the bold part is the problem , because when i put the sign parameter myself t works great.. i guess its a chars issue but i cant spot it

View 3 Replies View Related

Slackware :: Message - Enter Print Command ?

Aug 15, 2010

When running certain programs (i.e. Nedit or Gourmet Recipe Manager) asking to print will give the following message: Enter print command:

Am using 13.1 32 bit with cups. Everything works properly and prints properly I just don't know what to enter for a 'print command'.

Have tried entering lpr and cups.

View 3 Replies View Related

Ubuntu :: Canon Mp470 Printer - 10.10 - Able To Print Black And White But Unable To Print Photos

Dec 26, 2010

My wife has a canon MP470 printer and running ubuntu 10.10. I am able to print black and white, but unable to print photos. I got it to work using another driver, but not the 'correct' one for this printer. I have searched a bit and don't see anything about ubuntu 10.10, just older versions. Or should I just network her to my printer....?

View 5 Replies View Related







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