Red Hat / Fedora :: LP Command - Print Landscape - Lp -ddestination -olandscape Isn't Working

Dec 3, 2010

I want to print Landscape and I would normally use Code: lp -ddestination -olandscape However this isn't working, it could be another problem (I am passing to a windows print spooler) but I would like to know if I have got the command right.

View 1 Replies


ADVERTISEMENT

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

OpenSUSE :: Some Applications Not All To Print Text In Landscape Correctly

Apr 28, 2011

My setup:
openSUSE 11.4.
Acer Extensa 5635ZG
Epson Stylus Photo PX710W, connected with WiFi

I have just discovered that I can't print text from libreoffice writer/calc if the layout is set to landscape. The letters seems to have been stretched and printed over each other. If I print the same document in kword/kspread everything is printed as it should be. I have generated a pdf of the document and printed from okular/acroread, even then it's not printed correctly. Although it looks ok in okular/acroread. What else that can be seen is that when it's wrongly printed the printout is printed in the opposite direction compared to when it's printed correctly. I.e. the tail comes first on the paper so to say. Where should I begin to search for faults?

View 9 Replies View Related

OpenSUSE Hardware :: Cannot Print 11x17 Landscape On HP Laserjet 5100

Mar 5, 2010

I am trying to print a schematic from KPDF (Suse 11.2) onto an 11x17 sheet of paper. Regardless of the printer settings I use or which driver I choose it won't rotate the image and fill the page. I have the same problem with kiCAD. If I use Okular it prints part of the drawing in one corner at the 8.5x11 scale.

View 3 Replies View Related

Ubuntu :: Open Office Calc Print Portrait And Landscape?

Aug 12, 2009

I have a Calc spreadsheet that has 3 sheets. The first page is set for Portrait and the remaining pages are Landscape. Currently I am printing each page as a separate print job.I would like to print the entire Calc pages as one job where the printer prints the first page as portrait and the remaining pages as landscape without user intervention.

I do not see any command in the print dialog or in open office dialogs that tell the printer to change orientation. It seems that OpenOffice fails to tell the printer the page orientation. Is there any way to accomplish this. If a macro is required how do you write it and how is it executed?

View 2 Replies View Related

General :: Unable To Print Timestamp - Command Not Working

Jan 29, 2010

I am just trying to print the timestamp. which is not working.

#!/bin/bash
TSTAMP= date '+%d.%m.%y-%H:%M:%S'
echo "${TSTAMP}"

It is not displaying anything. What is wrong with the above commands.

View 3 Replies View Related

Fedora X86/64bit :: Can't Print Test Pages Or From Any App Or From CLI With Lpr Command And Packagemanager

Sep 7, 2010

I loaded FED 13 and running kernel 2.6.34.6-47 fc13, Now back from holiday, I'm trying without success to sort out a few problems. 1 can not print. the printer sets up OK epson R285, but can't print test pages or from any app, or from CLI with lpr command. Cups log shows this:-

[Code]....

View 1 Replies View Related

Red Hat / Fedora :: CUPS Printing In Landscape Mode?

Jan 21, 2010

Trying to set up a printer for the 1st time using CUPS's GUI system-config-printer. Trying to set up a printer that will print in landscape mode, 132 characaters per line, and 66 lines per page.Got it to print in landscape mode but the line wraps at 108 characters.What settings do I need to get it not to wrap. Current settings are:

cpi: 15
landscape: true
lpi: 8

View 5 Replies View Related

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

Red Hat / Fedora :: Finding A Sed Command To Print A List Of Files In "/home" Directory?

May 14, 2009

I need a sed command to print a list of files in "/home" directory, ending in ".sh"

View 4 Replies View Related

Fedora :: Ls Command Not Working?

Dec 3, 2009

How can i install the ls command again?

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

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

Fedora Security :: At Command Not Working?

Sep 25, 2009

I get the following error in the logs when i run 'at now -f task' as root. atd[4737]: Failure setting user credentialsI am trying to auto shutdown the PC but, it fails.I am also pasting the /etc/pam.d/atd config file which

# The PAM configuration file for the at daemon
#
#

[code]...

View 2 Replies View Related

Fedora :: Mailx Command Isn't Working?

Jan 28, 2010

I am trying to email some log files from my RHEL 5.3 server to my Outlook corporate account and nothing happens. Here is the command I use:[root@server1]# mailx -s "server info" my_id@my_corporate_domain < server_infoThe file server_info does exist and is a small log file. I checked for sendmail and seems to be running OK as follows:

[root@server1]# ps -ef | grep -i mail
root 13954 1 0 2009 ? 00:00:00 sendmail: accepting connections
smmsp 13962 1 0 2009 ? 00:00:00 sendmail: Queue runner@01:00:00 for /var/spool/clientmqueue

I'm not at all familiar with mail clients or mail system in Linux. Is there anything missing? I don't have to use mailx, I could use an alternative. Just please let me know how to sent a simple mail from this server to my corporate account using any tools possible (and maybe how to set it up)

View 1 Replies View Related

Fedora :: Jobs Command Not Working In F14 ?

Apr 24, 2011

I tried using the jobs command in bash in F14 but nothing happens.

Code:
[root@Fedora ~]# jobs -l
[root@Fedora ~]#
Code:
[root@Fedora ~]# which jobs

[Code].....

If jobspec is given, output is restricted to information about that job. The return status is 0 unless an invalid option is encountered or an invalid jobspec is supplied.

If the -x option is supplied, jobs replaces any jobspec found in command or args with the corresponding process group ID, and executes command passing it args, returning its exit status.

Is the jobs command dropped for the ps command instead ?

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

Red Hat / Fedora :: Running Mulitple Command Through Ssh Not Working?

Aug 19, 2010

I am trying to execute 3 commands stacked together on a remote server. The purpose of the commands are to get the oldest path name, then the filename of the oldest file in that path, and then the date/time of that file.

The command I am running is: stat -c %y $( find -L $( find -L /home/data -depth -maxdepth 6 -mindepth 6 -type d | sort -f | head -1 ) | grep txt | sort -f | head -1 ) This command works fine if I execute it on the command line of the server. However, when I try to use it in a bash script and execute it from one server on the other server using ssh, the command does not work.

Example:

oldest_file=`ssh -l root $IP "stat -c %y $( find -L $( find -L /home/data -depth -maxdepth 6 -mindepth 6 -type d | sort -f | head -1 ) | grep txt | sort -f | head -1 )"`

I don't know why the command will execute if I run it straight on the server but not through ssh. I broke it down to just the 2 Find commands and saw with verbose turned on that the path from the first (innermost) Find is not being passed to the second Find so it is not returning a filename which inevitably makes the Stat command fail.

Also, if there is an easier way to do what I am trying to accomplish without stacking these 3 commands like this, then I welcome those suggestions as well since I am a Linux newbie.

View 4 Replies View Related

OpenSUSE :: Can't Print Files With Chinese Char With Lp Command?

Jul 5, 2011

1. lp file_with_english_chinese2. lp -ozh_CN.utf8 file_with_english_chineseThe normal ascii characer prints ok but the chinese character are blank.

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

Networking :: Terminal Command To Print Current Network?

Jan 24, 2011

I'm hoping this is the right category. Is there a terminal command to display what network you're currently connected to?
Example:
My home network's name is (in this example) "home".When connected to it, I want a command that, when run, would give me the output 'home'. Does such a command exist?

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

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

General :: Stat Command To Print Permission In Octal Format?

Oct 11, 2009

Is it possible to print the permission in octal format for a directory recursively?Code:
stat -c "%a" /etcIt prints the permission for /etc directory only.

View 2 Replies View Related







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