General :: Does Not Get Redirected To STD Error

Nov 29, 2010

I am not really a Linux or unix user, so apologies if the question seems too easy to be asked on the forum, but I tried using the search engines and failed.
Code:
cat < foo 2> bar
Why doesn't this get redirected to stderror on error conditions?

View 9 Replies


ADVERTISEMENT

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 :: Rpm Doesn't Work When Used With URL That's Redirected?

Jun 4, 2011

If I do the following, if the URL is a redirect, it doesn't work

rpm -ivh http://path/to/rpm

I have to use wget http://path/to/rpm which resolves the redirect and downloads the file, then run rpm on that file.

More for my knowledge of bash than anything else, would there be a way to redirect the file downloaded from wget into the rpm (something like redirection or pipes or something), so that they could be combined into one command and you wouldn't explicitly save the file first.

Something like... rpm -ivh << wget http://path/to/rpm

I have one more question, and that is whether there is a command in linux, such as wget, that would let me pass it a URL and output the redirected-to URL if the argument.

e.g. ('wget --someflag http://orig/url' would output 'http://url-after-redirects-followed')

View 2 Replies View Related

General :: Wget A File With Correct Name When Redirected?

Jun 23, 2011

I was unable to find an answer to something that (I think) should be simple:

If you go here: [URL]

like so:

wget [URL]

you'll probably end up with a file called "download_script.php?src_id=9750"

But I want it to be called "molokai.vim", which is what would happen if I used a browser to download this file.

Question: what options do I need to specify for wget for the desired effect?

I'd also be ok with a curl command.

View 2 Replies View Related

Ubuntu :: Websites Get Redirected At Random With Both Browsers

Jan 23, 2011

This happens at random and the problem persists even when using an alternative browser (Firefox & Chrome), being redirected to the same website. Sometimes it's [URL] going to [URL] going to AOL Lifestream.

View 4 Replies View Related

Fedora :: Can't Login To F14 / Display Goes Black And Redirected Back To The Log In Screen?

Nov 3, 2010

So, I just installed Fedora yesterday. I have been trying out different Linux distros and Fedora was next after Ubuntu and SuSE failed severely. So, I installed F14 yesterday and everything has been great... until I tried to set my JAVA_HOME variable. I followed the instructions here.

After editing $ vi ~/.bash_profile as the site instructs, I proceeded to log-out and log back in...except I can't log back in. I have repeatedly gotten the login screen, selected my account, and entered my password. When I enter my password incorrectly, it says 'Validation Error' and that is not what is occurring. The display goes black for a couple of seconds and I am redirected back to the log in screen.

View 3 Replies View Related

Ubuntu Networking :: Sftp Client For Redirected Ssh To Port 2222?

Apr 7, 2011

I have remote server and when I want to connect to it from internet I need to choose port 2222. I tryed to do it using filezilla, gftp, it can be done. Because they want from me to use default ssh port 22

View 1 Replies View Related

Programming :: Perl Script Output Can't Be Redirected To A File / Sort It?

Feb 18, 2010

The perl script I wrote works fine if I print the result to screen
x0_amber.pl 1 1000 0 5

But whenever I want to output to a file with
x0_amber.pl 1 1000 0 5 > x0_out

it never really prints out to the file.

It worked earlier, but I was playing with my PATH lately, I don't know if it's related to that

View 7 Replies View Related

Ubuntu :: Can't Login \ Entered Password Then Redirected To A Black Screen And Then To The Same Screen Again?

May 16, 2011

I've a problem with my ubuntu 10.04 suddenly when I opened my laptop and after I've entered my password then I redirected to a black screen and then to the same screen again and so on what I can do

View 9 Replies View Related

Fedora Networking :: Port Redirect, I.e. Whatever Comes Through Whatever Interface On Port AAAA Will Get Redirected To Port BBBB?

Feb 18, 2010

I want to do a simple port redirect, i.e. whatever comes trough whatever interface on port AAAA will get redirected to port BBBBI thought that iptables -t nat -I PREROUTING --source 0/0 --destination 0/0 -p tcp --dport AAAA -j REDIRECT --to-ports BBBBhowever it doesn't work, e.g. nc -v -w2 -z localhost AAAA gives:

nc: connect to localhost port AAAA (tcp) failed: Connection refused
while
nc -v -w2 -z localhost BBBB

[code]....

View 10 Replies View Related

General :: Rsync Error: IO Error Encountered - Skipping File Deletion?

Aug 21, 2009

I am trying to use rsync to keep 2 machines in sync. I get the following error sometimes. If I rerun the rsync it usually works.

IO error encountered - skipping file deletion

View 1 Replies View Related

General :: Cups Error With LaserJet 1012 / "client-error?

Jan 29, 2010

I've been switching out computers to the Ubuntu distro and so far it's been very successful until this recent snag! As I am trying to have a printer plugged in through USB on one computer and shared on the other! I have the USB on the second computer and it found the printer just fine, no problems and nothing else I had to install! I then went to the first computer and tried to add the printer through the CUPS website using all the proper addresses and queue names and I receive CUPS "client-error-not-possible". I have read other threads on this very same problem but to be honest they just make no sense whatsoever to me! I was thinking of just giving up and using a print server but I know that I will run into the same snag as even then I still need CUPS.

View 9 Replies View Related

General :: Error While Trying To Install Ettercap Configure Error Libnet On Red Hat Enterprise

Jan 4, 2011

I am quite new to Linux. Just some basic information, I am using windows xp but have installed vmwork station and am running Red Hat enterprise linux 4.

When i run ./configure it gives me this error. "configure: error: libnet >=1.1.2.1 not found "

View 8 Replies View Related

General :: Grsync Failure / Rsync Error: Unexplained Error (code 255)?

Sep 19, 2010

I'm trying to sync a folder between my Windows install and my PCLinux install. Same machine, Windows 7 on the C drive and Linux on an external USB hard drive.

Using the Grsync GUI, I searched for the source and destination folders, and then executed the command. Here is the output:

** Launching RSYNC command (simulation mode): pkexec rsync -r -n -t -v --progress -s /media/Win7/Documents and Settings/Paul/Application Data/The Word file:///root/.wine/drive_c/Program Files/The Word/myData

ssh: connect to host file port 22: No route to host

rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: unexplained error (code 255) at io.c(601) [sender=3.0.7]
Rsync process exit status: 255

It seems to be doing an FTP operation, whereas all I need is a file transfer. Can anyone point out my error here?

View 5 Replies View Related

General :: Error Occurred While Installing GRUB - Error 15: File Not Found

Aug 11, 2010

I am having a problem installing SLES11 on a new server. It goes fine through the setup until it gets to GRUB, it gets me the following error message: Error occurred while installing GRUB

[code]...

I cant continue the installation without this

View 5 Replies View Related

General :: [B][RED]Critical - Error Yum Install Nagios-plugins.x86_64 Yum Error Unsatisfied Dependency

Oct 7, 2010

i need to install nagios-plugins 64 bit, when i tried to install via yum i got this error yum install nagios-plugins.x86_64 yum error Unsatisfied dependency i hv installed openssl 32 bit but it needs openssl 64 bit, even php and perl. i tried to to install via yum yum install openssl.x84_64 but its not getting installed i tried to uninstall openssl but its shows so many packages to remove

View 4 Replies View Related

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

General :: Broken Dual Boot - Xp / Ub - Error: Error File Not Found - Grub Rescue

May 21, 2011

Ubuntu 9.10 was set up to handle the booting selection - previously I thought it was xp but Ubuntu 9.10 "did" it. The system started out as a xp / ubuntu 9.10 dual boot on a 400gb drive. xp has 210gb, ub has 80 and their is a 100gb shared storage. Xp was installed first and then I followed a guide over at linuxconfig.org to get ub installed so that I could select which OS was wanted at boot. Ubuntu manages the boot up menu (Went back to look at my notes from the original setup) The owner tried to update to ub 11.04 and afterall was said and done the machine now boots to the message

error file not found grub rescue I can't say if 11.04 was properly installed or not. Ask whatever you like and I'll give the best answer I can. I think the xp install is okay but I can't say for certain as I don't know how to boot it outside the bootmanager at startup. Data has been saved so if I have to blow it all away and start over I can but I'm hoping I won't have to.

View 29 Replies View Related

General :: Can't Seem Get Phpbb Going - Keeps Coming Up With Error - CGI Script - With Throws Me A Error 500

Sep 14, 2010

I installed XAMPP from http://portableapps.com/apps/development/xampp

I'm running XAMPP off my USB thumb drive ( ARAM 8gig )

I have worked out how to get most of sites up and running as in Wordpress + db's

I can't seem to get phpbb going, keeps coming up with an error ( CGI script )with throws me a Error 500

Is there some thing else I need to turn on ?

View 1 Replies View Related

General :: Bash Error - Syntax Error Near Unexpected Token `{

Mar 4, 2010

I am new to shell scripting, bash specifically.

I am trying to run the following script:

Code:

When trying to execute I always get this error:

Code:

In case you need to know the permissions. Here is it:

Code:

I run the script using the following command:

Code:

View 1 Replies View Related

General :: Error : There Was An Error Setting Up Inter-process Communications For KDE

Mar 5, 2010

I've been using Kate for a while without any problems.

However, today I tried to install Kedit.

Then I got this message:

"There was an error setting up inter-process communications for KDE. The message returned by the system was:

Could not read network connection list. /home/mikeb/.DCOPserver_XXX__0

Please check that the "dcopserver" program is running!"

Then I uninstalled Kedit, hoping that the damage would be undone.

However, Kate still shows the same message upon startup.

So I reinstalled Kate, and got the same thing.

What did the Kedit installation mess up, and how I can I fix it so I can use Kate again?

View 9 Replies View Related

General :: How To Fix Emacs Client Error : Arithmetic Error

May 10, 2010

GNU Emacs 23.1.1 I've noticed that if I run Emacs and M-x server-start, I can use the emacsclient program as usual, but if if I start Emacs using emacs --daemon and then try to use emacsclient the new frame locks up and the shell outputs *ERROR*: Arithmetic error. This issue doesn't happen if I use the -t flag to force terminal mode when running emacsclient.

View 2 Replies View Related

General :: Cups Server Error Client-error-not-possible

Jun 14, 2010

I am trying to setup an HPC4400 printer attached to a Windows XP box on a Fedora-11 box with the latest updates and am getting the error " Cups server error Client-error-not-possible ". Using the Cups GUI on the fedora-11 box I can find the printer, I get verify that the shared printer exists but still get the message when I try to install it.

View 2 Replies View Related

General :: Cups Server Error 'client-error-not-possible'

May 13, 2010

I hooked up an Hp deskjet portable to ubuntu and keep getting the above error when I finish installing the printer! How do I get by this? 10.04 LTS It's hooked up to LPT-1 port!

View 1 Replies View Related

General :: Error CHECK_NRPE: Error - Could Not Complete SSL Handshake

Oct 19, 2010

i have installed nagios in centos 64 bit. but i get this error CHECK_NRPE: Error - Could not complete SSL handshake. i have totally 10 hostgroup definitions. but i'm getting error for only 3 hostgroup definitions other 7 are working fine.

View 1 Replies View Related

General :: Error:syntax Error GRUB Or Similar

Feb 5, 2011

My brother has Tri boot Ubuntu ,7 and Vista ..GRUB2 is the bootloader..The problem : At boot after the Lenovo splash disappears , there appears some 4 to 5 lines of error , error:syntax error GRUB or similar..This is visible only for a fraction of a second before the GRUB2 menu pops up...

The OS es load properly on selection in the menu so no loss of functionality One another problem is there is no OS highlighted by default and the timeout message "Automatic Boot in 10 Secs" does not appear Reinstalling GRUB does not solve the issue

View 1 Replies View Related

General :: Cups Error 'client-error-not-possible'

Jul 8, 2011

I am running Fedora 15 and want to add a network printer (Brother HL 2040) on a Win pc reunning XP pro. Fedora finds the network printer, shows that is shares, but when I try to finish I get the above message. I have emptied the spool file of the test page I tried earlier and nothing but the tmp file remains. Anyone have any suggestions?

View 1 Replies View Related

Ubuntu :: General Error Mounting Filesystems - Error "No Such File Or Directory Fsck From Util-linux-ng 2.16"

Apr 1, 2010

My ubuntu stops when mounting system hdd. The screen display the following messages :

mountall:/etc/fstab: No such file or directory fsck from util-linux-ng 2.16 WARNING: couldn't open /etc/fstab: No such file or directory init: mountall main process (545) terminated with status 1 General error mounting filesystems. A maintenance shell will now be started. CONTROL-D will terminate this shell and re-try. udevd[560]: can not read '/etc/udev/rules.d/z80_user.rules. Ubuntu: clean, 474879/24231936 files/28016581/96898047 blocks root@i7:~# exit_

I suspect the disk manager pysdm that i had just installed today and it had crash during the previous session. The /etc/fstab file does not exist anymore and i cant rename the fstab.bak because the disk is read-only even for my root user

View 1 Replies View Related

General :: Unable To Boot Windows / Grub Error Saying GRub Loading Stage2 Read Error

Jul 8, 2011

I am new to Linux. I have installed RHEL 5.4 on my PC with preloaded Windows XP.

Windows was set as the first boot kernel. So if i do not choose which OS to be loaded it will load Windows by Default.

Today I got an error saying GRub Loading Stage2 read error.

View 9 Replies View Related

General :: NFS - RPC Error - Authentication Error

Jun 16, 2010

I have two machines (Fedora 13 as server, Scientific Linux RHEL 5.1 as the client), one acting as the NFS server and one acting as the client.

My config for the NFS server is as follows: -

Code:

Code:

Code:

Code:

I have opened the following ports:-

Code:

I start the following services on the NFS server: -

Code:

And on the client, I try and connect to the NFS server with: -

Code:

...and get the following error.

Code:

What am I doing wrong? Not used NFS before.

View 1 Replies View Related







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