Ubuntu :: Stdin: Error 0 At Boot

Mar 7, 2011

i've tryed to get rid of the ugly plymouth splash screen and this outpout at boot now:

stdin: error 0

and so on... It also appears in my /var/log/boot.log and /var/log/casper.log. But the OS works, just like before. I would like to know how can i get rid of this error. Or how can i hide it? Can i redirect the output to dev null at boot time?

Here is boot.log

Code:
stdin: error 0
Generating locales...
sl_SI.UTF-8... up-to-date
Generation complete.

[Code]....

Because it is really annoying to see an "error" when your computer boots, even if it is not really an error

View 2 Replies


ADVERTISEMENT

General :: Error - Gzip :stdin:input /output Error /bin /gstar :unexpected EOF In Archive

Mar 28, 2011

when iam opening my dec_backup folder the folling error is appering :

the error is gzip :stdin:input /output error
/bin /gstar :unexpected EOF in archive
/bin /gstar: error is not recoverable :exesting now

View 1 Replies View Related

Debian :: Gzip - Stdin - Invalid Compressed Data - Crc Error

Jun 18, 2011

I have two Debian machines running Squeeze x86 and x86_64.

I am having difficulties to untar a file in x86_64, although it is working in x86.

I made sure file is the same and the md5 match in both machines.

It seems like something special in x86_64 is causing it to fail.

See below:

View 9 Replies View Related

Debian Hardware :: Printing Error - Can't Copy Stdin To Temporary File

Jan 5, 2015

My printer has stopped working.

1. I am unsure if any system changes have occured. I am sure I must have changed something, but apparently did not document it.
2. Printer does work from other computers
3 Computer was originally wireless connected, but switched to USB. This had no affect. Well I can scan now so great.
4, Printer is HP 6500a.
5. Printer has worked from this computer before
6 This is from cups error log:

D [05/Jan/2015:11:47:48 -0500] [Job 147] Set job-printer-state-message to "Can't copy stdin to temporary file", current level=ERROR
D [05/Jan/2015:11:47:48 -0500] [Job 147] prnt/hpcups/HPCupsFilter.cpp 536: cupsRasterOpen failed, fd = 0

View 7 Replies View Related

Ubuntu Installation :: How To Prevent|hide: Stdin Error 0 On Installation

Mar 6, 2011

I'm working on a custom Ubuntu Live CD and i have some problem with "stdin error 0" appearing before the splash screen... How can i prevent this? Or hide|redirect the output from stdin?

View 2 Replies View Related

General :: How To Echo Redirected Stdin

Sep 26, 2010

I execute an application from a script file and redirect stdin to it from here-doc like this:

my_cli << HERE_DOC
enable
configure
10
exit
exit
HERE_DOC

This works as expected, but I don't see neither the input nor the app output. The application is an interactive prompt written in C. When I interact manually with it, I see the prompt itself and responses to my input, but when I execute the aforementioned script I see nothing. I would like it to print the input and the output as if a real user was typing. Do you know how to achieve that?

View 3 Replies View Related

General :: Clear Stdin Before Reading?

Apr 28, 2011

I have the following bash script:

#do some time consuming task here read -p "Give me some input: " input

Now as you might've guessed, if users press some random keys during the "time consuming task," they're read into input as well. how do I clear stdin (or at least ignore it) before I issue the read command?

View 1 Replies View Related

General :: Writing To The STDIN Of A Shell?

Jul 28, 2010

I am trying to write input to a shell and get the shell to parse the input that I am writing to it as if a user was typing in commands.

Thus far I have tried echoing some text into the shell's FD for STDIN in /proc/<pid>/fd Whilst this displays the text that I echo, the shell that I am writing to never tries to execute the command that I pass to STDIN. What is the difference between a shell taking STDIN from the user and data written to STDIN by another process e.g. echo ? It appears I am missing something fundamental.

View 5 Replies View Related

General :: Redirect Stdin And Stderr To Another Terminal?

Jun 28, 2010

Is it possible to redirect stdout and stderr from one terminal say /dev/pts/2 to another /dev/pts/3?

I tried the following:

Code:
/dev/pts/2 2>&1 /dev/pts/3&

Then when I run a command the process stops.

View 4 Replies View Related

Programming :: Bash: How To Discard Unwanted Stdin

Jun 22, 2010

Often in bash we read lines from stdin in a loop and implicitly discard the remaining stdin by terminating the loop. Is it possible to discard it without terminating the loop? It could lead to smaller code.

Here's an example which uses two loops and below is the same algorithm assuming unwanted stdin can be discarded

Code:
found=
while read destination gateway _
do
[[ $destination = default ]] && found=yes && break
done <<< "$( route )"

[Code].....

View 12 Replies View Related

Programming :: Clearing Stdin Obtained From Pipe

Mar 14, 2010

I have a small program that reads stdin from a pipe using fgets. Now fgets blocks for the first line but after that it will not block.

The code, my_echo.c -
int main(int argc, char **argv) { char buf [2000] ;
char* pc ; printf("hello ") ; while (1)
{ buf[0] = (char) 0 ;
pc = fgets(buf, sizeof(buf), stdin);
if (pc != NULL) printf("%s ",buf); } return 0; }

How its called
* In terminal window 1: ./my_echo < my_fifo
* In terminal window 2: echo "1234" > my_fifo
* In terminal window 1: prints hello then 1234.
* Checking with ksysguard or top shows that my_echo is consuming 40% of CPU time.

Adding a few printf's shows that the gets is not blocking and returns a null pointer.
* In terminal window 2: echo "qwerty" > my_fifo
* In terminal window 1 qwerty prints.
I want a read function that does in fact block so my program does not tie up CPU time, read does not block.

View 7 Replies View Related

Programming :: Write A Script Which Will Get A Number From STDIN?

Dec 15, 2008

I need to write a script which will get a number from STDIN and then with that number echo a set number of questions (its for a firewall config). Heres what I want the user to receive.

How many ports do you want open? 3

1. specify port: 80
2. specify port: 21
3. specify port: 23

In the background this will echo a command out to a text file which will read as follows:

open port 80
open port 21
open port 23

I've done this before but I've completely forgotten how

View 2 Replies View Related

Programming ::make AWK Do *something* Without Giving It Any Stdin Nor Inputfile?

Oct 10, 2010

[code]...

I've given the output from `df` on AWK's stdin. But what I wonder is if there's a way to get AWK to run `df` itself, produce the same output, and exit? Doesn't seem to be that simple. Here's some examples: Works for some reason, and I think only in Bash (nothing is required in the $()

[code]...

does AWK absolutely need *something* on stdin, before it begins to process the data? Can it be made to open a file or stream internally, act upon that as though it were the stdin, and exit?

View 14 Replies View Related

Programming :: How To Redirect Stdin For Child Process

Aug 18, 2010

I'm trying to write a shell script that do ftp and download file periodically, this script should be called by a daemon running in the background.

the shell script "script.sh" is as follows:

Code:
yafc ftp://test:test@192.168.1.225:21 < commands
and the "commands" files is

Code:
d Root/md5* /
quit

if I run script.sh it will work just fine. But when the daemon software calls the "script.sh", the script will send ftp login request to the ftp server, but will not even answer the username or anything.

I believe it is something about child process redirection, but I don't know how to deal with it.

This problem is not only with yafc, it is the same with any ftp client or any application like telnet and so.

View 4 Replies View Related

Programming :: Read From Stdin In Perl Do Not Wait For EOF?

Apr 28, 2010

I am trying to read one line at a time in perl and not wait for stdin eof to start the action:

Code:
foreach(<STDIN>){
<do something>
}

if i pipe ls into it, it waits for ls to be done before doing the action.

View 1 Replies View Related

Programming :: Stuffing A Key Into Another Virtual Terminal's Stdin?

Oct 20, 2010

I want to put a keystroke into another virtual terminal's stdin.A simple 'echo p > /dev/tty7' causes a p to appear on the console of tty7 but not the app running in tty7 to respond as though a p key had been pressed. Per the instructions of a fellow in the software forum I tried using an ioctl, but that returned a permissions error, even when I made the target VT's permissions 777 (and it had the same owner).

View 1 Replies View Related

Software :: Stuff A Keystroke Into Another Virtual Terminal's Stdin?

Oct 19, 2010

causes a 'p' to appear in tty7 but not the program running in 7 to react as though a 'p' had been pressed.

View 12 Replies View Related

Programming :: Redirecting Stdin / Stdout And Stderr For Program Run As Fork()/execl()?

Nov 24, 2010

I'm trying to write a program that will fork a series of FTP sessions. For each session, there should be separate input and output files associated with stdin and stdout/stderr.
I keep reading how I should be able to do that with dup2() in the child process before the execl(), but it's not working for me. Could someone please explain what I've done wrong? The program also has a 30-second sniper alarm for testing and killing of FTPs that go dormant for too long.

The code: (ftpmon.c)
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

[code]....

The output:

$ ftpmon
Connected to gila-crstest.gilacorp.com (172.16.20.8).
220 (vsFTPd 2.0.1)
ftp> waitpid(): Interrupted system call

Why am I getting the ftp> prompt? If the dup2() works, shouldn't it be taking input from my script and not my terminal? In stead, it does nothing, and winds up getting killed after 30 seconds. The log file is created, but it's empty after the run.

View 3 Replies View Related

Programming :: Redirecting Stdin / Stdout And Stderr And Finding Files Name And Other Stats?

Aug 8, 2010

I'm working on an application used for backup/archiving. That can be archiving contents on block devices, tapes, as well as regular files. The application stores data in hard packed low redundancy heaps with multiple indexes pointing out uniquely stored, (shared), fractions in the heap.

And the application supports taking and reverting to snapshot of total storage on several computers running different OS, as well as simply taking on archiving of single files. It uses hamming code diversity to defeat the disk rot, instead of using raid arrays which has proven to become pretty much useless when the arrays climb over some terabytes in size. It is intended to be a distributed CMS (content management system) for a diversity of platforms, with focus on secure storage/archiving. i have a unix shell tool that acts like gzip, cat, dd etc in being able to pipe data between applications.

Example:

dd if=/dev/sda bs=1b | gzip -cq > my.sda.raw.gz

the tool can handle different files in a struct array, like:

Code:

enum FilesOpenStatusValue {
FileIsClosed = 0,
FileIsOpen,

[code]....

Is there a better way of getting the file name of the redirected file, (respecting the fact that there may not always exist such a thing as a file name for a redirection pipe).
Should i work with inodes instead, and then take a completely different approach when porting to non-unix platforms? Why isn't there a system call like get_filename(stdin); ?

If you have any input on this, or some questions, then please don't hesitate to post in this thread. To add some offtopic to the thread - Here is a performance tip: When doing data shuffling on streams one should avoid just using some arbitrary record length, (like 512 bytes). Use stat() to get the recommended block size in stat.st_blksize and use copy buffers of that size to get optimal throughput in your programs.

View 4 Replies View Related

Programming :: STDIN, STDOUT, STDERROR Redirection For Scripting - Bash: Log.txt: No Such File Or Directory

Sep 7, 2010

I'm writing a script to execute bash commands in the PHP CLI. I would like to suppress errors from bash and write my own error message if an error occurs. So far I have this (assuming log.txt doesn't exist!):

Code:

tac log.txt 2>/dev/null

Which works as expected, tac kicks up an error but the error is suppressed, but when I use this:

Code:

tac < log.txt 2>/dev/null

I get:

Code:

bash: log.txt: No such file or directory

The tac error is suppressed but bash still gives me a dirty error.

View 2 Replies View Related

General :: Getting Back To "stdin" After Redirecting A File To A Particular Program?

Nov 22, 2010

I need to achieve a particular effect using bash's redirection facilities.I know that I can redirect a file to some program's standard input:[user@host]$ application < file.txtThe thing is, I'd like to know can I regain control of this program's input after the file content's have been passed to it. In other words, I'd like to run a command similar to the above, and then, instead of the termination of the application, I'd want it to wait for further commands from standard input (keyboard).

As I write this question, it occured to me that I could probably write another application (or a script), that would at first write some data to standard output and then act as echo, like:[user@host]$ stdin_proxy.sh | applicationWould it work, and is there any better way to do so? There are a bunch of Googleable tutorials covering this issue, but they all amount to one advice - "reopen the stdin after the file contents have been read".

View 1 Replies View Related

General :: Redirecting STDOUT Of Previous Command To STDIN Of Next Command

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

Fedora Installation :: F12 LiveCD Does Not Boot - Error "error:[drm:drm_mode_rmfb] *ERROR* Tried To Remove A Fb That We Didn't Own"

Dec 14, 2009

Make: Fujitsu-Siemens
Model: LifeBook P7120

For some reason (hardware - I am guessing) the LiveCD does not boot on some laptops. The LiveCD worked well on my Dell Inspiron 1525 without any problems but my Fujitsu-Siemens refused to boot up. If you are trying to install or use F12 with the LiveCD ISO image burnt onto a CD on a laptop and fails with the following error:[drm:drm_mode_rmfb] *ERROR* tried to remove a fb that we didn't own Boot has failed, sleeping foreverthis workaround may work for you. Sometimes it will come up with another error about 'Root Device Not Found'

The workaround only works on a bootable USB key for some other reason, created with 'live-usb creator' and not a CD nor a LiveCD image on a USB created on a windows machine. I have tried them all.

[Code]...

View 1 Replies View Related

Ubuntu Installation :: Error 29: Disk Write Error Then Trying Again Windows Seems To Boot But It Takes Much Longer

Aug 17, 2010

i finally decided to updgrade from Hardy Heron to Lucid Lynx. for this i made a backup of my old install, then i couldnt find my Lucid CD so i used a Karmic one to partition my old ext3 to ext4. There were some errors but after trying a few times it worked. Installed Karmic, rebooted (worked fine), downloaded all updates - (did NOT reboot to let updates take effect) and upgraded to Lucid.

Everything went fine so far. Now when i try to boot into Lucid the system hangs, i've also got a windowsXP partition on there so i tried booting that, first grub tells me Error 29: Disk write error then trying again windows seems to boot but it takes much longer than it should and seems to hang.

Then i tried Karmic and Lucid LiveCD (which i found in the meantime) none of the LiveCDs make it to boot after about 20 minutes. (previously they worked fine)looking at the errors it seems to be something about the harddrive. Why the harddrive would stop the LiveCD booting is a mystery to me but the same messages appear when i select Recovery from the Grub menu so i guess the problem is related.

[Code]...

View 3 Replies View Related

Ubuntu Installation :: Error On Boot "Read Error After Changing Motherboard Battery

Dec 2, 2010

I changed my motherboard battery last night, and now get "Read Error" on booting to Ubuntu, on dual boot system. This is the most frustrating thing in an otherwise great operating system. It is the second time I have encountered this issue (last time was a change of power supply). I fixed it last time after three days of re-loading Grub2 and playing around Grub 2 updates, etc. Fixed it eventually, but as usual, no idea of what eventuality fixed it. I think I found a web page buried deep in the 'net, which talked about device.map. Do you think I can find it again - not yet - day 2 searching for the answer... This is what the grub script tells us:

[Code]....

View 7 Replies View Related

Programming :: Read In Stdin And Ping Line By Line?

Jan 8, 2010

Code:

#!/usr/bin/perl
use 5.10.0;
use strict;
use warnings;
use Net::Ping;

[code]....

View 1 Replies View Related

Ubuntu :: Grub Error 17, Grubfix Error 22, Unable To Boot?

Feb 6, 2010

not sure what happened, yesterday i installed the new kernel and played around a bit by uninstalling some older kernels. Everything was fine but now i cant boot into ubuntu any more. I have a Dual boot and Grub let me boot into windows. for linux grub gave error 17 (if i remember correctly).o i popped in the LiveCD and tryed gparted to check for errors (nothing changed). I tried rewriting grub from the live cd and that made matters worse.

Code:
grub> find /boot/grub/stage1
find /boot/grub/stage1

[code]....

View 3 Replies View Related

Ubuntu Installation :: Error On Boot - Read Error

May 10, 2010

I have just installed Ubuntu 10.04LTS however when I attempt to boot the HDD I get the following error message

Read Error

Thats it nothing else, I am able to boot a USB installed version of Ubuntu 10.04LTS no proble. I can boot a Live CD of the same version no problem but when I installed it to the hard drive it just seems to fall over. I've tried adjusting the boot order, putting the HDD first and removing everything else but no joy. Im a linux n00b so no idea what to do next apart from go back to windows.

View 9 Replies View Related

Ubuntu Installation :: Xp And - Netbook Dual Boot - Error - Windows Boot Failed

Jul 8, 2010

I have a netbook running Windows XP as standard. There is also a recovery partition which came from the factory.

In the past I installed Ubuntu (I think 9.something) from USB key and all worked fine. However my XP became corrupted and I needed to do a repair on it. After this, Ubuntu became removed from the boot select menu.

Since then, Ubuntu has become updated to 10.04, which I now cannot install.

The Live CD tells me there is a "file IO error" and simply stops installation at around 70%.

I did manage to get into Ubuntu from a Live USB using Wubi. However when I chose to install Ubuntu to a Harddrive, the option to "install side by side" was missing.

After reading on the forums, I did a chkdsk /f on Windows and tried again. Now my liveUSB does not show a boot menu!

When I select to boot from USB stick, the screen goes blank with a flashing cursor. Ctrl+alt+dlt reboots.

I'm really lost here! It seems when I fix one problem, another problem arises!

Also when trying to instal Ubuntu within Windows, the process goes through to 100% and asks me to reboot. When I do so, the option for Ubuntu does show in the boot menu. However when I select it, I get an error "Windows boot failed: file wubildr.mbr and status: 0xc00000f - something is corrupt".

View 1 Replies View Related

Ubuntu Installation :: Boot From USB Stops At Copyright Line During Boot, No Error?

Aug 30, 2010

I'm trying to install Ubuntu on a computer with Vista SP2, my BIOS supports booting from a USB drive. Ive used unetbootin and Universal USB installer to setup the ISO on the drive, as well as trying Ubuntu version 10.04 and 9.10. The problem is that during the boot it stops at a line reading "SYSLINUX 3.86 2010-04-01 CBIOS Copyright ...", no error messages, it doesn't appear to be frozen as there is a blinking cursor under this line. The boot performs normally up to this point, it happens when, during a normal boot to vista, it says "boot from CD/DVD" then loads windows.It shouldn't be a hardware issue, the computer is pretty new, and I had an older version of Ubuntu install on it temporarily.

View 1 Replies View Related







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