Ubuntu :: Redirecting Iwconfig - Eth0 - Has No Wireless Extension Are Still Outputted To The Terminal (stdout)
Mar 11, 2011
When iwconfig is redirected thus Code: iwconfig >> wireless.txt things like Code: eth0 - Has no wireles extension are still outputted to the terminal (stdout)
View 2 Replies
ADVERTISEMENT
Apr 20, 2010
I have a script where I want to redirect stdout to the terminal and also to a log file aswell as redirecting stderr to the same log file but not the terminal.I have the following code which I found on the net which redirects both stderr and stdout to a file and the logfile,
Code: if [ -p $PIPE1 ]
then
rm $PIPE1
[code]...
View 3 Replies
View Related
Jun 7, 2010
I have a command line server that logs to stdout, which I start along the lines of ./server > log.txt
What I want to do is limit the size of log.txt, without modifying the server.
I am assuming there must be some kind of tool already that lets me do this, something like where I can pass in my server, the output file and a size limit? If so, can anyone enlighten me?
View 3 Replies
View Related
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
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
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
Mar 22, 2011
I just installed Ubuntu 10.04 on a my laptop with a built-in wireless card. I also installed drivers using "ndiswrapper", but I can't make the card work.
When I type "iwconfig" in the Terminal, I don't have the wlan0 listed. In the wireless network drivers, I see the driver I installed and it says: "Hardware present: Yes"
View 4 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
Oct 9, 2010
I'm not sure about the following behavior so thought I would put it out to see if there is an error I need to resolve, or simply a process that I need explained.I'm also not sure if this is an Ubuntu issue, a Linux issue, or other... but here goes.I ran my "make build" in two different ways; one with just "make build" and one with "make build > output" (so I could review the full script).With just "make build" the process finished and returned to the command prompt.
With "make build > output", after the process had finished (script in output document identical to what was in the terminal with "make build") a new set of data was displayed in the terminal (see below).With the other examples of using "make build > output" the times it would parse something back to the terminal window was when there was an error. As I fixed the errors these breaks back to the terminal window would stop. So I'm wondering if this indicates a new error, but because the "make build" now completes successfully (at least it appears to), I'm wondering if this data in the terminal window is just a behavior related to redirecting the output script using the ">" process and something to do with returning to the terminal once a process completes
View 4 Replies
View Related
Feb 22, 2011
I just installed Slackware 13.1 on my Asus 1215T, and I've been trying to get it to connect to my wireless network in my home. When I type iwconfig I get no wireless extensions, and ifconfig returns only lo, no wlan0. I read the Slackbook wiki and tried to configure the inet1.conf and wireless.conf but still no luck...
View 12 Replies
View Related
Dec 14, 2010
left to its own devices my wireless connects at too low a speed. I have a 20meg internet connection and my wireless is slowing it down to like 3meg. When I reboot into windows it's fine. When I run iwconfig eth1 rate 11M or even 24M the connection is much faster and runs fine, why won't it automatically go higher? Is this the fault of the driver? I am running Broadcom's driver compiled from source. Also, how can I set it to 24M at boot?
Edit: I guess I can put iwconfig eth1 rate 24M in rc.local, but I'd still like to get auto running higher, especially as my signal should be pretty good. Output from iwconfig white rate=auto:
eth1 IEEE 802.11 ESSID:"honeypot"
Mode:Managed Frequency:2.417 GHz Access Point: xxx
Bit Rate=1 Mb/s Tx-Power:24 dBm
Retry min limit:7 RTS thrff Fragment thrff
Encryption keyff
[Code]...
View 1 Replies
View Related
Mar 6, 2011
I've beenhaving some trouble getting my wireless network card working on my Slackware 12 box. Currently it identifies the card and can scan for networks, but I can't seem to join a network. Here's some output:
{8:46:29}gibson:/lib/modules/2.6.33.4-smp## iwlist wlan0 scan
wlan0 Scan completed :
Cell 01 - Address: F8:1E:DF:FF:DA:39
ESSID:"MasterControl"
[code]....
It doesn't seem to be accepting the essid setting, and it's giving an error for the key setting. Also, I'm noticing an inconsistency in the wireless protocols. The AP claims that it's 802.11g with rates up to 54 Mb/s. But it should be 802.11n. It's an Apple Airport Extreme and the Radio Mode is set to Automatic and displays "802.11a/n-02.11b/g/n" on the Airport Utility. The interface also claims that it's 802.11g, though shows a rate of 300 Mb/s. It's a Belkin "Play" Wireless USB Adapter (F7D4101).
(Note: I'm using ndiswrapper and the WinXP drivers which were installed from the Belkin software.)
View 1 Replies
View Related
Mar 28, 2011
In our family we have an Eee PC / in Windows7 and openSUSE 11.4 everything is working. In Mint 10 Gnome 64 and 32 bit and Fedora 14 Gnome 32 bit we don t have wireless with persistent USB. iwconfig > no wireless and Networkmanager does not show wireless.
View 8 Replies
View Related
Feb 6, 2010
I still cannot access to internet. May I know why?
Is it due to the Error for wireless request "Set Encode" (8B2A)
The step i did:
1) iwlist eth1 scanning
2) sudo iwconfig eth1 essid shabana key s:xxxxxx
3) invoke firefox ... cannot surf
Do I need to set dhclient? how should I set? DO I need to enable wpa_supplicant?
iwlist eth1 scanning
sound like I was able to connect to ESSID:shabana. Is it true?
The linux is Centos 5.4
View 3 Replies
View Related
Apr 9, 2010
I wanna see the wifi signal strength.But when i run the command iwconfig , it tells me 'no wireless extensions'.By googling I found that I need to enable config option CONFIG_NET_RADIO.I see that this has to be done in boot which has config files.So I typed the command grep CONFIG_NET_RADIO /boot/<config-2.6.31.5-127.fc12.i686> (my fedora version is 2.6.31.5-127.fc12.i686).But I got the error as "bash: syntax error near unexpected token `newline' ".I dont know the reason.I also want to know if I have to install driver(ndiswrapper)for viewing wireless signal strength.I thought that the drivers will present default(am not sure).
View 9 Replies
View Related
Jun 11, 2010
having trouble with my asus 1000 rt2860 wireless n card and WPA/PSK/WPA2 connections. Funky thing is it worked in the 2.26.32-21 kernel (iwconfig shows ra0 as the wireless interface), but when the kernel was updated and pushed through in the ubuntu updates to 2.26.32-22 the wireless card won't stay connected and iwconfig says wlan0 is the interface. I checked the proprietary drivers and they said that the driver for my card was active, but not in use. How do I use the ra0 instead of wlan0?
how do i use the driver that's listed as not being used? I'm having to boot up lucid with the older kernel now, it's annoying, lots of programs aren't running as expected as a result. I've tried manually installing the driver from the RaLink website as detailed in many other posts concerning this wireless card. It seems to work for some people, but not with me.
View 1 Replies
View Related
May 28, 2011
My wireless usb will not attempt to connect to my AP even though it shows in ifconfig and iwconfig:further information which i believe may helplspci -v
00:00.0 Host bridge: VIA Technologies, Inc. CN700/VN800/P4M800CE/Pro Host Bridge
Subsystem: VIA Technologies, Inc. Device aa08
Flags: bus master, 66MHz, medium devsel, latency 8
[code]....
View 1 Replies
View Related
Sep 1, 2011
I have installed SATA driver recently...Even if i can use wifi but i could'nt find any ath0 interface in ifconfig or iwconfig commands....My wifi is taking place through eth1 interface why it happens.....The reason for asking this in order to use aircrack for wep key it says that the injection process only applicable for Athelon interfaces but mine is eth1...I was just trying aircrack-ng...
View 2 Replies
View Related
Nov 10, 2010
I have just upgraded my system to Fedora 14. One thing I noticed after running some applications on it is that it is not possible anymore to figure out on what frequency a wireless interface is using. If I set a wireless interface to monitor mode and perform the iwconfig or iwlist command, in the past, I could see the frequency used on the interface, but now, this information is not present anymore. My wireless interfaces are in monitor mode.
Has the frequency information been removed from iwconfig or iwlist commands? If it has, is there another way to report this information?
Here is an output from iwconfig on my system:
View 4 Replies
View Related
Sep 18, 2010
I am using backtrak 4 because i wont to hack a wireless network and when i wrote iwconfig it dose not work. see this [url] and i am using dell laptop dell inspiron 1545.
View 4 Replies
View Related
Mar 11, 2010
The adapter I purchased (Zonet ZEW2508 ) uses the Ralink 2070 chipset - a fact that originally excited me because Ralink seems to be fairly loving to the Linux community. However, despite my best efforts I can't get the thing to work. Initially I tried following directions to set up the driver you can download from the Ralink website. The directions I found were written February first, and Ralink updated the driver February eighth - so as far as I can tell the directions no longer work. After screwing around trying to figure that out for a while I decided to give ndiswrapper a go.
Initially this seemed promising. I just harvested the drivers from the CD and followed one of the many ndiswrapper directions available - most helpful seemed initially to be the Ndiswrapper Troubleshooting Guide found in this forum, however the solutions offered there didn't work either. When I throw an ndiswrapper -l into the terminal it looks promising at first, it tells me the driver is installed and the device is present, but it just doesn't work. When I try iwconfig, or iwlist scan it tells me "no wireless extensions," and "interface doesn't support scanning" respectively. The only devices even listed are lo, eth0, and pan0. There's no wlan0 or anything of the sort.
View 1 Replies
View Related
Mar 21, 2010
Ubuntu 9.04 with working wlan. I had to restart router & wap. It doesn't seem to ever retry to connect. I know my router & wap are good, I have wireless working on other laptop (running Puppy) I had to go into 'edit connections' in drop down and use 'wireless' tab then edit 'wireless connection 1' and hit 'apply' is there a better way to do this? also, no connections show up with command 'iwconfig' edit: with ifconfig, eth1 si showing data my ip address and packets sent & rcvd. I think I'll try do duplicate this event and use 'ifconfig eth1 down' and then up again to see if it reconnects.
View 1 Replies
View Related
Apr 9, 2010
I'm having problems while trying to connect to protected wireless network using iwconfig(8).
When I type in:
Things work ONLY if i DON'T input some numbers after the s: but my actual passkey has numbers.
It outputs this as an error:
my configuration(ThinkPad R61i):
View 8 Replies
View Related
Apr 22, 2011
im trying to setup eth0 with subdevice eth0.0 and eth0.99 to come up at boot
eth0 is dhcp clint
eth0:0 is static ip
eth0.99 is 802.1q vlan interface
/etc/network/interfaces
Code:
auto lo
[Code]....
View 1 Replies
View Related
Mar 20, 2011
I have recently converted my old desktop computer into a server (using the ubuntu server 10.10 install disk), installed xubuntu, and have installed the driver for my WPN111 usb antenna using ndiswrapper. I then installed wicd to connect to my home network (with a WPA2 passkey). Anyways, it works great... with one major annoyance � whenever I reboot (with "sudo reboot") the computer, the wireless configuration isn't detected at all.
Code:
$ iwconfig
lo no wireless extensions
eth0 no wireless extensions
The only time it works is when I turn my computer off and manually turn back it on... and then "iwconfig" gives me a third entry: wlan0. The wireless then (and only then) works like a charm. The problem is, I want to be able to access this server away from home, and of course in that situation I cannot manually reboot it.
View 1 Replies
View Related
Mar 4, 2009
how can i activate eth0 on terminal ?
View 1 Replies
View Related
Mar 3, 2010
I have my ubuntu box hard wired into my network. It all works fine, until I reboot my ubuntu box. After reboot, it can no longer see the network. I have it set up with a static ip. Not sure that I set it up completely correctly but it works fine...when working.. To fix the problem, I enter terminal: ifup eth0 That fixes all know problems until next reboot. What do I need to do so that it will remember settings and automatically be hooked into the network at power up?
View 3 Replies
View Related
Feb 21, 2011
Running 10.04. For some reason, starting today, I have no internet connection unless I run this command in terminal - sudo dhclient eth0. I have a hard wired ethernet connection on a Desktop PC with a static IP address (there are a number of devices in the house) and it has been running 100% for months and months. Why suddenly do I have to enter this command to get connection? When I switch on I get a connection in that when I click on the Top Panel icon and right click Connection Information it tells me I have an active connection to my router on the normal IP address. I cannot ping the router and Firefox says Server not found. After sudo dhclient eth0 everything works - what has happened since yesterday evening and this morning to stop what has been 100% for months?
View 6 Replies
View Related
Mar 3, 2011
I have just installed the play command in my terminal and when I try to play an mp3 i get the error " no handler for file extension 'mp3' ".Am I required to create a default action that happens when an mp3 file is called, like opening and audio player, or do I just need to install some specific drivers?
View 5 Replies
View Related
Jul 21, 2010
I just install Ubuntu 10.04 on a new laptop. there was no driver for the wireless interface. I then install the proprietary driver. The wireless adapter name is now eth1. My problem is that networkmanager0.7 does not realize that a wireless adapter was configured. and I cannot find where to configure eth1 as its wireless adapter. Where is the menu for that?
View 1 Replies
View Related