General :: StartServer.sh Command Stays Printing Since The Server Is Up On Stdout
Feb 22, 2011
I have a starServer.sh command in a shell script along with a bunch of command. Th startServer.sh command prints out stuff on stdout and stays printing since the server is up. However eve though I want to start the server I want it to continue executing the commands after ./startServer.sh in the same flow.
View 4 Replies
ADVERTISEMENT
Nov 20, 2009
i'm trying to redirect the output of a command to the input of the next command. not sure if i'm going about this the right way. an easy method would be just to store the output of the previous command in a file and redirect input to read that file, but i'm curious to see if this can be done without writing to any files.
View 9 Replies
View Related
Oct 29, 2010
I have a PDF that I built using BIRT, and that works fine. At this point I'm trying to print it using lpr or some other command. It seems as though I should just be able to type lpr invoice.pdf and it should print to the default printer. However, lpstat -t shows "Empty print file!" for the printer, and the printer doesn't do anything, let alone print the file. lpr -l invoice.pdf prints the file, but unformatted - just a bunch of characters and whitespace on a seemingly infinite number of pages.
View 2 Replies
View Related
Oct 23, 2010
I have created an image out of 2 other images using the "montage" command. I want to then print it using "lpr". I view the output from montage in XV and it looks fine however when I try to print, it prints the bottom half of the first image then the second and then the bottom half again.
E.g., imagine this:
Code:
<< end of top image
<< end of bottom image
The above is how it looks in xv however when printed, it looks like:
Code:
-------
-------
~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~
//////////////////
//////////////////
-------
-------
I really can't understand it, I've tried opening and saving the image again but it still prints as above. I don't know if montage is outputting it incorrectly or something, however it looks right on the screen!
View 3 Replies
View Related
Jul 29, 2011
I don't understand why this is so difficult.In the old days, there was lpforms which allowed some formatting. CUPS did not see fit to implement this into it's lp package.cgi-...-cgi?lpforms+1In the old days, lpr allowed you to select a font in the command line with -1=fontname. CUPS did not see fit to implement this into it's lpr package.htmIn the old days, printers had fonts installed on them that you could access. Modern printers don't seem to have this. So now I still need to be able to select a font when I print certain text files from the command line but it seems this is impossible. I've been working with instances and lpoptions, which allows me to do a lot of other things I need like orientation and margins and even set the font size, but I still cannot choose a font other than the default.
View 2 Replies
View Related
Apr 3, 2011
CUPS was not originally installed on my server, I have installed it but cannot print to my network printer. On my laptop, I can... they are both running the same version of Debian. What could be missing?
Here are some details...
I have two computers running the same version of Debian. One is a server with no GUI and the other is my laptop with GDM installed. My laptop (which prints with no problem) is connected via Wifi. My server is connected directly to the router via Ethernet. I cannot print from the server.
The printer is a Canon Pixma MP495 that connects to the router via Wifi. I have downloaded drivers for the printer from [url] and installed them successfully using dpkg on both computers.
Right now I have a regular text file that I am using for a test page. To print from my laptop (with success) I type:
Code:
This does not work from the server. What could I be missing?
lpq run on server:
Code:
lpinfo readout:
Code:
View 14 Replies
View Related
Apr 26, 2011
Using Fedora 14 with Gnome 2.3 Desktop utilizing Compiz and Emerald theme manager. When I empty the trash, the icon is still the FULL Trash icon. I tried using different Emerald Themes, and different Icon sets, but still the Trash Icon stays full. I checked the trash folder in $HOME/.local/share/trash and found nothing, no hidden files.
View 3 Replies
View Related
Jun 1, 2011
I have a Linux program which can write information to stdout and stderr.
I have a shell script which redirects that output to a file in /var/log. (Via >> and 2>&1.)
Is there a way to make that log file rotate? (max size, then switch to a different file, keep only a limited number of files)
I've seen a few answers which talk about the logrotate program, which sounds good, but they also seem to be focused on programs which are generating log files internally and handle HUP signals. Is there a way to make this work with a basic output redirection script?
View 3 Replies
View Related
Sep 26, 2010
I have a process which logs output to log.txt. If I want to see the process's status in real-time, is there a way to echo that output to stdout instead of opening the log in a text editor and constantly reloading?
View 3 Replies
View Related
Aug 16, 2011
I want to keep a trace of the URL I visit, so I use a command line like this:
tcpdump -ien1 -v -X 'tcp port 80' | sed -nl
's/^.0x[0-9a-f]{4}:.{43}(.)$/1/p' |perl break.pl |perl -pe
's/(GET|POST).(.*?).HTTP/1....Host:.([a-zA-Z._0-9-]*)../"
BEGURL
[Code]....
I also tried redirecting stdout and stderr to /tmp/out, it's still empty. The file has write access. I have no idea what it can be. Is there anything else than stdout and stderr?
View 2 Replies
View Related
Aug 22, 2011
How can I print Linux command line history without including the line numbers? I want to send it all to a text file like this:history >> history.txt
View 1 Replies
View Related
May 24, 2011
Since last few weeks i am struggling to setup printer connected to print server.
Here is the setup that i have:
I have Red Hat Linux machine from which i want to issue print jobs.
I have Windows Print Server having multiple printers connected to it.
I am able to print jobs from Windows client to any of these printers. But i am not able to print from Red Hat Linux. (i have verified that i can print using smbclient utility, but based on my reading, CUPS API could be used from application to discover, print and issue print jobs.)
I am not able to get the correct configuration for setting up CUPS client.
View 3 Replies
View Related
May 24, 2011
I've got a server listening on a port. when I stop the server the port stays open for some minutes. How can I close it immediately?
View 2 Replies
View Related
Mar 26, 2011
I tried this command to print the buffer of an existing screen session to stdout but I don't know why it doesn't print anything.
screen -x lftp -X hardcopy /dev/fd/1
screen -x lftp -X hardcopy /dev/stdout
It works if I use a regular file instead, so why doesn't it print to stdout when I use /dev/fd/1? I do this with other applications don't have an option to write to stdout and it works, so what does GNU/Screen do that makes it not work?
View 1 Replies
View Related
Aug 5, 2011
Am having issues getting the output from a script to be logged in a file. I need the script to output both the stderr and stdout to the same text file.
At present I have the following script:
Code:
#!/bin/bash
echo TR3_1 > printers.txt
snmpget -v 1 -c public 10.168.**.* SNMPv2-SMI::mib-2.43.10.2.1.4.1.1 &>> printers.txt
[Code].....
View 4 Replies
View Related
Jun 3, 2011
I have several commands in a bash script, and in the middle of the script there are several commands whose output and error streams I want to redirect to a file. I think I could simply add '>> myfile.txt' to the end of every command, but is there a way to set it before that block of commands, then reset the streams to their original state at the end of that block?
View 1 Replies
View Related
Nov 20, 2010
I don't know where to begin with this problem, because I'm not really sure what is causing it. What is happening is that every now and then my cpu load jumps up to 90-100% and just stays there. Programs that typically take a 1-5% of the cpu load start taking up around 40-50% of the total load. Everything bogs down to the point that only a restart fixes it. Does anyone have any idea on what might be happening?To give a little background, I recently switched from Ubuntu 10.04 with Gnome to a dual boot with Windows XP and Slackware 13.1 with XFCE, Slackware being the main boot. What I'm experiencing now never happened with Ubuntu either. I will say that it does seem to happen when I stream media (movies and music) online, but it doesn't just start immediately. The increase occurs at irregular times, so I can't pinpoint one thing that causes. Moreover, I can't find a process that might be causing it
View 4 Replies
View Related
Dec 2, 2010
how to send a document to print on a network printer (via IP address) from the command line (not a GUI interface).
View 4 Replies
View Related
Jun 30, 2011
I'm having a hard time trying to print documents to PDF via cups-pdf at the command line and get all of the nice formatting options that the GUI print spooler dialogs provide. I know how to do "lpr -P Generic-CUPS-PDF-Printer filename" to get a general file printed to a PDF, but this method clearly is missing all of the nice formattingptions that get passed when using a GUI print spooler (margins, fonts, dpi, paper size, etc..). I tried to use ps to capture whatever command is being sent by the spooler but couldn't figure it out, since I'm not really sure what commands get called by the spooler
View 8 Replies
View Related
Mar 25, 2011
I built a desktop a year or so ago, which runs like a dream. I have installed many OSes on it but the problem persists. If it tell the PC to restart it does everything right, shuts down but the PC remains on before it can restart. The OS shuts down and nothing is running, but the desktop stays on. If it helps, the PC shuts down fine. Just an annoying issue if I get updates in Windows/ Ubuntu etc.
View 1 Replies
View Related
Apr 29, 2010
i want to disable the su command on a server so that users cant run the su command i removed the comment from the 3 and 5 line in /etc/pam.d/su file but it doesnt seem to work the file is shown below
#%PAM-1.0
auth sufficient pam_rootok.so
# Uncomment the following line to implicitly trust users in the "wheel" group.
[code]....
View 8 Replies
View Related
Jul 14, 2011
I have installed Unbuntu on recommendation from two users to get the USGS ISIS program to run on it when OTHER versions of Linux seems to have issuyes..not necessariliy LANY edition of Linux either ... imho after two full months of trying to get USGS and ASU to help give me honest geo-referenced and map-aligned data of all 10 bands each IR image has from Odyssey.. NasaView opens and gives individual bands..but...geo-referencing and map-alignment only ISIS can do.
I finally got it to work when two Ubuntu users got the main lib of ubuntu think certain old libraries are there when not. I think...worked anyhoo the ISIS commands worked...but now...the OUTPUT of the commands are INACCESSABILE! [URL] The above topic is where you'll read about the two month attempt and also see the Ubuntu rescue. But now the PLACE folders open for a VERY VERY short time about 2-3 seconds, if that, then shuts down again. From the Home terminal I got this list
[Code]....
As you may guess correctly everything between Music and Pictures in the listing is THE stuff produced by the output of the ISIS program made FOR Linux systems. Which One? Well Suse 10 and above not supported anymore and there are others. So I don't know what to do. I thought del meant delete in ANY language...guess not. What's up and how can I delete these files from the Home folder at least so it STAYS OPEN?
View 4 Replies
View Related
Nov 2, 2010
I have an application originally built for Unix Solaris that opens a Ghostview window to display maps on the desktop. When we recompiled the application for Red Hat Enterprise Linux 5, the Ghostview window opens and displays as requested, however I find the window cannot be successfully moved from the top left corner of the desktop. This has never been a problem on Unix, which allows the window to be moved to any location. In Linux, when I attempt to move the window to any other location on the desktop, it immediately pops back to the top left corner. I sometimes need to compare two different Ghostview maps, which is tough to do when they both insist on staying in the same location.
View 3 Replies
View Related
Jun 22, 2011
I'm running Debian Squeeze on a Dell Studio 1558 laptop, and I have my laptop set to suspend when my lid is closed. Resuming from suspend seems to work but the screen remains blank, forcing me to hard reboot every time. Upon reading this thread
Code:
Tue Jun 21 23:07:12 AKDT 2011: performing suspend
Tue Jun 21 23:07:28 AKDT 2011: Awake.
[code]...
View 1 Replies
View Related
Aug 18, 2009
-bash-3.2# tar -xzvf lzo-2.03.tar.gz
gzip: stdout: Cannot allocate memory
lzo-2.03/
lzo-2.03/src/
[code]....
This is on a VPS with 256mb memory. vmstat and /prov/meminfo both show that over 200mb is free.
View 1 Replies
View Related
Jul 28, 2010
We developed qt based application in linux. I wish to stop ejecting the paper after printing over.How to do it.
View 2 Replies
View Related
May 31, 2010
I expected more from ubuntu 10.4 with regards to printing with exact size photos and with poor auto colour printing but the situation remains unchanged! for instance .. the photo size configurations for ubuntu/fspot/gimp and others are not compatible with my printers (HP and Brother) .. here in Europe a typical standard size photo (10x15inches or 150x100mm are not even on the Ubuntu listing? I have tried all listed possibilities including "custom" (which does not seem to ever work correctly?)and the result at best is photos with uneven boarders or at worse my printer goes a bit crazy with much wasted photo paper and expensive ink ...even photos selected for "no boarders" still produces photos with the self same uneven boarders.
I have tried pretty much everything over time following advice in this forum and including using HPlip and updating drivers required for my Brother printer but the root problem seemingly lies with the Ubunto photo size setup listing. Working with Ubuntu over the years I have found that it can do pretty much everything that Windows can do except for this dam ongoing photo quality and configuration problem.
View 9 Replies
View Related
Nov 30, 2010
I'm not looking to setup a print server. I want to print documents TO an existing network printer while I'm logged in via ssh to my Ubuntu Server 10.4 command line shell. Things like admin emails, pdf docs, etc.
All the clients on my LAN are able to print directly to the network printer without any help from the Ubuntu Server. I don't want to setup CUPS on the server unless that's the only way to print from the server itself to a networked printer.
Do I need CUPS or can I print from the command line in some other way?
View 4 Replies
View Related
Apr 8, 2010
I just brought up a new server on RHEL4 to replace an existing older one. The server is using CUPS for printing. I copied the cupsd.conf, printers.conf, and lpoptions files over from the old server. I also copied the printer files in the /etc/cups/ppd directory over to the new server. But I can't get printing to work. And when I run system-config-printer-tui I don't see any of the printers in the dialog box. What other file(s) am I missing?
View 1 Replies
View Related
Apr 20, 2010
Im trying to print a pdf file in landscape but it always prints as portrait these are the commands that i use...
lpr -o landscape -P printername filename.pdf
lpr -o orientation-requested=4 -P printername filename.pdf
this is the printer standard options
#lpoptions -p printername -l
Duplex/Double-Sided Printing: DuplexNoTumble DuplexTumble None *Notcapable
PageSize/Page Size: Letter *A4 11x17 A3 A5 B5 Env10 EnvC5 EnvDL EnvISOB5 EnvMonarch Executive Legal
[code]....
View 1 Replies
View Related