Slackware :: 'less' Command - Prints Garbage When Piped
Mar 5, 2010
When i pipe commands through 'less' in console, i get a load of garbage mixed into the results, and no colors either. Mainly the letters 'Esc' printed a couple of times on each line.
I had been messing about with my bash config files but i can't see anything in there to affect this. If I pipe through 'more' there is no problem, only 'less'.
View 11 Replies
ADVERTISEMENT
Feb 9, 2011
I actually have two reasons for posting this. One is to see if there's an actual name for characters like this:Hopefully that will show up correctly for you. If not, it's a little box with four numbers in it, one in each corner. I don't know their name or their reason for showing up, so it's hard to look for help.
My main problem, though, is that I wrote a program that prints some output to a console using ncurses as it runs. These characters show up on the console, seemingly at random, and disturb the whole thing. Sometimes I'll also get sets of characters like "[13;" I'm not printing anything bizarre on there, just strings and floating-point numbers.
View 6 Replies
View Related
Jul 28, 2009
Just recently got a few printers connected to the network at my shop and I've managed to get them connected in with samba for the linux clients. Whenever I try to print from one of the clients, the printer will click on and whiz away, but only prints on the first page stuff that looks like this:
Code:
%!PS-Adobe-3.0
%%BoundingBox: 38 24 574 768
%%Title: Enscript Outpu
%%For: User N
It seems to me that the printer isn't processing the postscript data properly (or I'm just not sending it in the right format) but I'm at a loss as to how to go about fixing it.
View 4 Replies
View Related
Dec 1, 2010
I would like to keep this simple and if possible use a piped command as opposed to an all out complex method.I have a script that does many things for me, and one of them builds a basic simple system report (I know about lshw, but this is for me to learn as well as be functional)
I would like to add another pipe to remove the"model name:" portion.I do not really want to use the store in a variable first solutions if I can help it.
View 7 Replies
View Related
Mar 7, 2011
My root partition /dev/sda1 is 24.41 GiB with 10.48 GiB used. How can I tell if I have inadvertently placed a bunch of garbage on this partition? Also, should I, and I use the term loosely, 'move' certain directories to my home partition /dev/sda3? (118.77 GiB with 3.14 GiB used)
Right now I believe that, rightly or wrongly, if I screw up my system, all I need to do is install my Clonezilla image back to /dev/sda1 and I will have a 'mostly' working system. If I 'move' anything out of /dev/sda1 to /dev/sda3, will this hold true? Or am I out to lunch on this assumption anyway?
View 14 Replies
View Related
May 19, 2014
I'm struggling on installing a KONICA-MINOLTA printer magicolor 4695MF printing properly with Linux Mint Debian Edition (up to date). The test page works fine...
KONICA-MINOLTA delivers 2 PPDs: one for standard printing and one for OpenOffice printing (available on the KONICA-MINOLTA support site).
Leaving a side the one for OpenOffice which is poor in using the capabilities of the printer, I concentrate only on the global one (M4695PX.ppd).
It's much more difficult for other applications, starting with EVINCE: some PDF files are printed properly (i.e. those generated in OpenOffice by the CUPS PDF printer), others come out as one only blank page, regardless to the original length of the document.
So documents received from 3rd party may be "printable" or not. And trust Murphy, the most critical aren't printed...
Attached, the troubleshooting file generated by [system-config-printer] => [URL] ...
View 0 Replies
View Related
Mar 14, 2011
I'm running a standard 13.1 32 bit install with an HP deskjet 990C, run off of USB. Until today everything has printed properly. Now nothing prints. Nothing has been installed unless it came through slackpkg, and yes it is still on the correct setting for arch and revision. CUPS shows printer as installed, accepting jobs an idle. No error messages are appearing but nothing is reaching the printer. The info I can glean is from the error logs in CUPS:
[Code]....
View 4 Replies
View Related
Mar 24, 2010
I've been using slackware since slack12.2 on a linux box as router at home with some servers running on it and it's been awesome and performs perfectly. But since I upgraded to slackware 13 there is something that drives me crazy. I use to manage the box through SSH but sometimes I have to do some configs localy and it's almost impossible because I have constant echos of some traffic the iptables is forwarding to other hosts on the network.
View 6 Replies
View Related
May 22, 2011
I have Brother HL2250N. This worked out of the box with 13.0 using the Brother drivers. I also have a Brother MFC-7820N which works fine in 13.0 and 13.37. In 13.37 the testpage from CUPS prints fine. However when I try to print anything from kate or libreoffice I just get pages and pages of text starting with
[code]...
I assume this the post script file that is printing out. How do I get this to print properly?
View 3 Replies
View Related
Jun 1, 2011
Is there a simple way to save a video that appears in the /tmp directory as a pipe instead of a video file format? I was watching some of the old educational films on fluid dynamics from t the only evidence I see of a fileaSL_PIPE_500_SingleOfficeIPC_ff7ed09f7cfaad13bfa22 2a40c3fd37
View 2 Replies
View Related
Aug 3, 2010
I am doing this project for our school. Basically we want to pipe all incoming emails to a script which filters out certain messages (not only spam but duplicates, large messages, etc). If they fail certain criteria, the script simply does nothing.If they pass , then the script should pass the entire message (headers and body) back on to qmail to send. The piping part is not a problem, but I am stuck with the next part. Is there a way to pass the headers and body back to qmail for it to process and send, as if it received it the first time?Some details:A catchall email account is created via Plesk control panel on linux (centos).THe .qmail file in /var/qmail/mailnames/domain.com/catchall/ is edited to include the line:-|/path/to/pipe/handler.phpThe handler.php file simply reads the entire message (headers and body) and they are then parsed and analysed.
View 2 Replies
View Related
May 5, 2013
I'm piping stdout from mplayer to awk, but the output stutters.
Code: Select allmplayer audiofile.m4a 2>&1 | awk -vRS="
" '$1 ~ /A:/ {print $0; fflush();}'
Instead of a steady output of lines to the terminal, output only occurs after a few seconds, between 6 or 12. This happens whether the input is from mplayer or avconv/ffmpeg. This never used to happen (a few years ago) so I wondered whether an awk update caused this to happen.
View 6 Replies
View Related
Jan 4, 2010
I'm trying to download a file and extract it in one line, but the extracted file is owned by me instead of root even though I'm using sudo:
Code:
sudo sh -c 'wget [URL]'
If I don't try to extract the file, it is owned by root as I expected:
Code:
sudo sh -c 'wget [URL]'
View 1 Replies
View Related
Nov 6, 2010
Code: stuart@stuart:~/$cat showthread.php.html | grep -o [URL][^"< ]*" | uniq | head -n3 | plowdown - cannot stat '-': No such file or directory Code: stuart@stuart:~/$ awk NR==$x Musiclist.txt | cut -d/ -f6 | basename $1 .mp3 .mp3 Here's some system info on the bash i'm using:
[Code]...
View 13 Replies
View Related
Feb 28, 2011
First time I've done this in awhile Upgrading my Slackware64 -current VM, following the standard routine that has always worked in the past -
Code:
slackpkg clean-system
slackpkg install-new
The clean-system removed 2 packages -
util-linux-ng
eggdbus
Installpkg will no longer work, complaining that the rev command is not found. The problem hit with the removal of util-linux-ng. I cp'd util-linux to ~/. Extracted with tar and executed the doinstall. Fixed.
View 4 Replies
View Related
Jan 7, 2010
I was wondering if it is possible to have a garbage collector in C, and would it be too difficult to create?
View 1 Replies
View Related
Jul 23, 2011
when i use the command startx my slackware goes to kde but when use X deos not. what is X command or whow i can make my X open kde with it
View 10 Replies
View Related
Mar 4, 2010
Code:
char retBuffer[100];
recv(sock , retBuffer ,sizeof(retBuffer) , 0);
if i send a string smaller then my buffer size retBuffer always have garbage of the end of it....what can i do to eliminate tis problem ?
View 2 Replies
View Related
Aug 27, 2009
I'm interested in writing a generational garbage collector in C++. This is for a Python-like programming language project. I have used Boehm's garbage collector before, but I'm worried that it will have noticeable pause times (unacceptable for interactive programs). Since I can't really find any other C++ established GCs out there, I have been thinking of simply writing my own.
However, there are two essential ingredients I need for this:
- Some kind of write barrier mechanism that will notify my collector when something is written to a part of the heap
- A way for me to know the addresses and sizes of the stack, heap and global storage (the root sets)
how to implement write barriers (and how to get the stack, heap and global storage information) on the Linux platform? As an alternative, if you know of C++ GCs other than Boehm, I would also be interested.
View 14 Replies
View Related
Mar 5, 2011
if I open Yast2 via SSH I see the garbage (code page related issue; similar to this). If I set some other than UTF-8 in PuTTY (KOI8-U, iso-8859 etc) Yast looks good, but then the same problem appears with Midnight Commander. How can I have Yast to use 'right' UTF-8 instead of any legacy code pages? Or how better deal with the situation?
View 2 Replies
View Related
Mar 25, 2010
I've setup a git-svn repo with cron to fetch from the svn repo daily. I have a script to do the fetching, and this is what is invoked by cron. Everything is fine with the repo, and the script works fine when executed manually. However, when it runs under cron, empty files get dropped into the .git directory. The files have names that look like they are some base64 output, e.g. juTrvjP6m8 and kcKf3hu3b4. Two of these files show up for every cron run. I thought these might be commit hashes, but they're not, git-show says it's an unknown revision. I set-up the repo as follows:
[code]...
The last line pushes the repo to a separate (bare) public repo from which others can clone. I'm piping the output from the cron job to a file, which looks like this:
[code]...
The line "fatal: unable to run 'git-svn'" is alarming, but the fetch seems to go ahead anyway. Where are these empty garbage files coming from, and how to stop them? Am I in for bigger problems in the future?
View 1 Replies
View Related
Jan 6, 2010
I am trying to get a new box up. It has XP on one HDD. There is a second HDD, upon which I want to install Ubuntu and dual boot. My problem is that my CD drive is garbage and won't run the installer. Nor do I have any flash drives. Is it possible to install directly from Windows but not "within Windows" persay? If so, how is this done? (I do have Daemon Tools.)
View 2 Replies
View Related
Jan 23, 2010
I have installed scim and anthy. Most Japanese characters display, but some websites and files show garbage characters. Is there any way to resolve this?
View 1 Replies
View Related
Apr 30, 2010
With 10.04 final i still have the issue with a very distorted screen. Works with RadeonHD driver but performance is utterly crap so no good solution. Also when adding new panels they become invisible and only a logout and login makes them visible around the border. Errors somehow related? How do i file a bug report?
View 1 Replies
View Related
Nov 1, 2010
I have installed scim and anthy. Most Japanese characters display, but some websites and files show garbage characters.
View 1 Replies
View Related
Nov 2, 2009
Inherited an old Laserjet 6P that was working fine XP. No matter which printer driver I use all I get are pages and pages of garbage during the test print. I have tried the hplip, gimp, ljet4 drivers without success. I have tried sending text files from the command line as well (cat /etc/passwd > /dev/lp0) with the same result.
Fedora 11 64
cups 1.4
hplip-3.9
hpijs-3.9
Anyone using this printer with cups 1.4? Any ideas which driver to use?
View 4 Replies
View Related
Jul 21, 2010
The code below prints garbage if I use puts() but it is fine if I use printf() instead (see sample of output at the bottom of this post). The odd thing is that the mess always starts after exactly eight properly printed characters. That sort of regularity can't be a coincidence, can it? It almost looks like an encoding issue (I'm using UTF-8) but if it really is, then I don't understand why the printf() is unaffected.
Code:
#include <stdio.h>
#include <string.h>
const char *nChars (const char *, int);
int main (int argc, char * argv[]){
char * name ="Count Dracula++";
int len = strlen(name);
if (argv[1] == 0) argv[1]="printf";
printf("--->%d characters", len); .....
View 9 Replies
View Related
Feb 13, 2009
Is there any repo to get xserver fixed packages?? see [URL]..
View 2 Replies
View Related
Dec 8, 2009
Am running OpenSuSE 11.1 / KDE 3.5 on an Acer Aspire 4730Z laptop. Garbage is displayed on the screen just before and just after the login screen. The garbage sometimes includes vestiges of the taskbar. Suspect some video buffer is not being correctly initialized.
View 1 Replies
View Related
Mar 28, 2011
i installed 11.3 with kde on my wife's computer a couple of months ago, and i am slowly trying to fix the holes in the installation. things that she "can't live without". now i am working on flash. videos and other flash videos in the browser are all jerky, with very poor playback quality as a result. the playback skips forward a couple seconds, then pauses. this appears to be exactly like a bandwidth issue - but it is not. bandwidth is fine, and allowing the vid to download completely before playing makes no difference. i uninstalled all flash stuff, then reinstalled from a standard repo selection that included packman. pretty much oldcpu's recommended list of repos. no change. i've spent hours searching and reading threads, trying to find a gold nugget. one said delete ~/.macromedia and ~/.adobe. did that. no change.
update everything. no change. reboot. no change. somebody mentioned he was having a firefox specific issue with similar symptoms. i try chrome. no change. some ppl seem to connect flash misbehavior with vid driver issues. this box has an ati onboard gpu - ati radeon xpress 200. so i spend some time looking through some threads i turned up regarding updating that - but this leads me to more searching and no answers. i don't know how to tell what driver i have installed for ati, i don't know how to find the kernel config file to see if ati has been built in, and more.
View 6 Replies
View Related