Networking :: Create Socat Connection -> Parse -> Output?

Nov 2, 2010

trying to create something that will periodically send messages to a serial device using socat, take the response from the device and format it, then take the formated data and send it out UDP to a specific IP/Port.I tried to do something along the lines ofsocat <readline> <serial device> | parse script/program | socat -u <readline> <UDP:IP:Port> but didn't have any success.socat READLINE,history=$HOME/.cmd_history /dev/ttyS1,raw,echo=0,crnl | format.sh | socat -u READLINE,history=$HOME/.cmd_history UDP:IP:Port

View 2 Replies


ADVERTISEMENT

Fedora Networking :: Pptp Vpn Connection - Failed To Parse Server Response

Nov 11, 2009

I am trying to connect to our work server (windows), however, without succes In the log I get the message: "Failed to parse server response"

And when I close the vpn connection window I get "there were no valid vpn secrets"

I Use F10 with xfce on an aspire one.

View 2 Replies View Related

Slackware :: Cannot Create Bluetooth Connection - Input / Output Error

Mar 3, 2010

I am having getting bluetooth working. I am using a home built computer, AMD Athalon 64, 1.5 gig ram, Slackware 13_64, up to date. I have bluez-firmware-1.2-x86_64-1, bluez-hcidump-1.42-x86_64-2, bluez-libs-3.36-x86_64-2, bluez-utils-3.36-x86_64-7 installed. I have a USB Micro Adapter 2.1 from IOGear and a Motorola S9-HD stereo headset.

This is what happens when I try to connect:
root|/home/john # hcitool scan
Scanning ...
00:23:D7:DE:8D:DFGravity
00:0D:FD:2A:BB:42Motorola S9-HD
root|/home/john # hcitool cc 00:0D:FD:2A:BB:42
Can't create connection: Input/output error

I am finding the headset but can't connect to it. I have the password from the headset in the default file of /etc/bluetooth/passkeys.

View 2 Replies View Related

Networking :: Relay UDP Broadcast Using Netcat/Socat?

May 7, 2010

Here is my problems :I have two networks :1. LAN (10.1.x.x subnet 255.255.0.0), and2. my internet public (IP 202.xx.xxx.xxxx subnet 255.255.255.240)I have an application in my LAN PC (10.1.2.240) which broadcast udp packet to its client. The client in my LAN can receive the udp packet, no problem.My question is how netcat/socat can RELAY the udp broadcast packet to one of my IP public address so the message can be received by other client from internet ?

View 5 Replies View Related

Networking :: Socat - Sending Binary Data From Client To Server

Apr 15, 2010

I am trying to redirect connection to port 8980 to execute a telnet command to a local machine
by issuing the following command :
In Server 1 :
socat TCP-LISTEN:8980,fork EXEC:/myscript,reuseaddr

My script contains
#!/bin/bash
telnet 192.168.20.12 //local Server 2

I am sending Binary data from the client to Server 2 via Server 1. So it happens that I have some characters in Hex translated to special characters in ASCII like open brackets or Commas etc.. and that closed the socket between the two machines.

View 2 Replies View Related

Programming :: Working With System Call - Read Output And Parse Values

Dec 10, 2010

I have the following code:
Code:
#include <stdio.h>
#include <stdlib.h>
int main() {
system("ps -ef | grep myprocessname");
return 0; }

When I run this program it outputs the following list of running processes:
Code:
root 10279 10275 0 13:02 ? 00:00:00 myprocessname myvar1=value1 myvar2=value2
root 10341 10337 1 13:02 ? 00:00:00 myprocessname myvar1=value1 myvar2=value2

What I want to really do is instead of writing the output to screen I want to read the output and parse the various values value1, value2 etc. What is the best way to do this?

View 4 Replies View Related

Debian Multimedia :: Conky Execp / Execpi To Parse Output Of Scroll Variable Generated From Shell Or PHP Scripts

Sep 11, 2015

I am having a hard time getting conky execp/execpi to correctly parse output of the scroll variable generated from shell or PHP scripts.

Code: Select allDebian 8.0
Xfce 4.10
Conky 1.9.0-6

This is a simplified minimal conky configuration file used to show the same problem:

Code: Select allalignment bottom_middle
background no
border_width 1
default_color white
default_outline_color white
default_shade_color white
double_buffer yes

[Code] ....

Here is the output I'm getting:

Code: Select all          ABC       /*doesn't scroll, UNEXPECTED, shows 10 spaces before ABC*/
          ABC       --||--
abcdefghijklmnopABC /*doesn't scroll, WORKS AS EXPECTED as scroll length is 25 which is longer than text "abcdefghijklmnop" */
abcdefghijklmnopABC --||--
abcdefghijklmnopABC /*WORKS, everything before ABC scrolls 5 characters at a time*/

View 0 Replies View Related

Networking :: Way To Create VPN Connection To The Internet ?

Sep 23, 2010

For any distro, via CLI and configuring config files, without using graphical tools. Or there have to be different?

View 1 Replies View Related

Fedora Networking :: Not Able To Create PPPoE Connection

Jun 16, 2009

I have just installed FC11 from a DVD I created from an ISO.I also have FC10 (using here) and Windoze XP pro all on separate HDDs.I have not been able to configure my internet connection, when I try to create a new xDSL connection I get an error message; package needed 'rp-pppoe'.I don't now how to get the package without a connection.I have tried with and without Network Manager.

View 2 Replies View Related

Ubuntu Networking :: Can't Create An Ad-hoc Wifi Connection

Aug 5, 2010

I just removed ubuntu-desktop in favor of kubuntu-desktop. Now I can't create an ad-hoc wifi connection however hard I tried from network-manager. It simply is not visible to other PCs. And when some connection is created on another ubuntu PC, I can't connect to it.. I switched NM off and tried the CLI way.

[Code]

View 1 Replies View Related

Ubuntu Networking :: Create A Wireless DSL Connection?

Nov 1, 2010

Under DSL tab in network connection we can create DSL connections, but they only allow wired connections(eth0). I need to connect using wireless connection(wlan0). I migrated to Ubuntu recently. With windows I was able to connect with wireless connection. I'm sure there is a way to achieve this in Ubuntu as well.

I'm using Ubuntu 10.10 (using since 9.10)

View 7 Replies View Related

Networking :: How To Create A Proxy Connection, Wvdial

May 5, 2010

What I want to do is to share the internet connected to a computer with a telephone, over another telephone which is permanently connected to the pc.The thing is, that some guys found a way of making this on windows, in fact, I already set it up on xp and works like a charm, it involves configuring in a certain way the telephone, and to use 2 programs. One is CCProxy, which redirects the internet connection to the telephone, and another one, which updates the IP adress of the telephone connection to dyndns, so that I can put that adress on my second telephone as proxy, and this way, surf on the net through my home internet on the telephone anywhere. Tricky right?

Now, the thing is I don't like at all booting windows only for sharing internet with my telephone. So I want to do it in linux. I use Ubuntu and Puppy linux home.I tried setting up the connection to the modem with wvdial, and... I got connected! But hey, when I connect to the telephone, I lost my internet connection (main, cable based, the pc connection) :-S. I mean, somehow, the "active" connection for the browsers and all the internet programs is now the connection I have made with my telephone, which is plugged to the computer.Now my objective here is that NO CHANGE of active connections get done when I start the connection to the phone, and then, get a program like CCProxy, and a dyndns updater for sharing the internet connection on the pc, to the connection made on the telephone-modem wired to the computer.

View 1 Replies View Related

CentOS 5 Networking :: Create A Single VPN Connection

Jul 28, 2010

I have just taken on a dedicated server sitting somewhere in Norfolk. I have created a website that uses PHP to connect to another remote server in order to interrogate a MSSQL database. This script, running on Apache, uses a VPN connection to connect to the remote server.To test, I have Apache on my laptop at home and just used Microsoft Network Connection to create the VPN connection.I have now uploaded this site to my new CentOS server and need to create the same VPN connection. I understand this is a command level and have been advised to use OpenVPN which I have successfully installed.My problem is I only have the details remote ip address, username and password. I believe I have to use the 'client.conf' script instead of server.conf.

View 1 Replies View Related

Fedora Networking :: Can't Create Vpn Connection - Cannot Save And Exits Out

Jun 17, 2010

I am running Fedora 13 Gnome. When I try to create a VPN connection using Network Manager (vpnc) it says that it cannot save the connection and exits out. I can provide other information if necessary.

View 3 Replies View Related

Fedora Networking :: Create A Broadband Connection Using Network Manager?

May 26, 2011

Just replaced a working install of Ubuntu because i like GS over unity but i cant get my USB760 EVDO card to work. The usual fix of editing the cd.rules file and copying some information into modem.fdi does not seem to work on F15..

Also, noticed that when i attempt to create a broadband connection using network manager it allows me to go through all of the setup dialogs, but never actually adds the broadband connection.

View 1 Replies View Related

General :: Socat And Rich Terminals - No Job Control In This Shell

Mar 24, 2010

socat - exec:'bash -li',pty,stderr,ctty -> bash: no job control in this shell

What options should I use to get fully fledged shell as I get with ssh/sshd? I want to be able to connect the shell to everything socat can handle (SOCKS 5, UDP, OpenSSL), but also to have a nice shell which correctly interprets all keys, various Ctrl+C/Ctrl+Z, tab completion, up/down keys (with remote history).

- Found "setsid" socat option. It fixes "no job control". Now trying to fix Ctrl+D.
- socat file:`tty`,raw,echo=0 exec:'bash -li', pty, stderr, setsid, sigint, sane. Not it handles Ctrl+D/Ctrl+Z/Ctrl+C well, I can start Vim inside it, remote history is OK.

View 1 Replies View Related

Programming :: C++ - LibSerial With Socat Virtual Serial Port?

Oct 17, 2010

I'm trying to use a C++ program to communicate through a serial port on Ubuntu 10.04. I've installed LibSerial and for now I'm using virtual serial ports using socat. I'm getting an error on compiling (found below). But step by step, first I start the virtual serial ports:

Code:
(MYNAME@MYCOMPUTER):~$ socat -d -d PTY: PTY:
2010/10/17 22:04:18 socat[18575] N PTY is /dev/pts/2

[code]....

View 4 Replies View Related

Networking :: Wlan0: Option 43 Has Zero Length, Failed To Parse Packet?

Apr 14, 2010

I have a thread started on the Slackware forum about the possibility of installing Slackware on an older P4 laptop. Well, it installed fine and most things are working, but I am experiencing one problem that I need to solve before I progress to working on other things.

I hope the mods will not consider this a double thread because it is a networking issue and the other thread was started about a different subject, and I thought there might be more networking specialists there (though everyone I meet on the Slack forum is very knowledgeable, this one has not been solved.)

I am trying to connect wireless with an RT2500 chipset, the correct module loads and the machine is connected to the network, but with a "failed" IP address (169.254.167.101). This also occurs with a wired connection. The exact error is:

Code:
err, wlan0: option 43 has zero length
failed to parse packet

It times out then assigns the failed IP address and connects to the network, but of course nothing works.

I use WPA psk and I have another laptop with the same configs and works perfectly with Slackware -current, so I followed the same routine to set this one up. When that didn't work, I backed up the existed /etc/rc.d/rc.inet1 and wpa_supplicant.conf, and copied the working files to the new setup. Same result.

There does not seem to be any information about this error either here on LQ, or on the net. I have certainly never encountered it before.

Because it connects with good signal strength, and because it also occurs with wired connections, I can only assume that it is related to WPA in some way. I have not reset the router because I have a number of other machines connected. All of the other machines work, and this one connects, so it is not hardware related.

View 14 Replies View Related

CentOS 5 Networking :: Create PPPOE Connection On Text Based CentOS?

Jan 1, 2010

How can i add a PPPOE connection witch connect automatically on system start up in text mode in centos 5.4

View 3 Replies View Related

Ubuntu Networking :: Interhack And Error "Can't Access() Script - Could Not Create Socket: Connection Refused"

Feb 12, 2010

I'm trying to run Interhack (spoiled variant of Nethack) for local game. Is looking through settings I saw that:

[Code]....

When I try to start it with ih_server option it gives me that error: Code: Can't access() script Could not create socket: Connection refused I think my problem is closed port: Code: nc localhost 9999 localhost [127.0.0.1] 9999 (?) : Connection refused How do I fix this?

View 2 Replies View Related

General :: Create Files For Specific Output?

Mar 10, 2011

I would like to create a bash script that takes the following text and split in different files. The output is:

Code:
JOB ID: 1
JOB NAME: Test1
01012010 Message: Success1
01012010 Message: Success2

[Code]....

View 7 Replies View Related

Programming :: Convert The XML Output Files To SQL In Order To Create Or Update An SQL Database?

Dec 7, 2010

I've a program which manages my pdf and references. I wish to put some of the information on my website but that program (Mendeley) does export only in XML (or bibtex). I'd like to simply convert the XML output files to SQL in order to create or update an SQL database.I'm not an expert in either XML or SQL (use only PHPMyadmin). Does someone get help me to figure out?

View 2 Replies View Related

Ubuntu Servers :: No TLS Connection In PHP Via Fsockopen / Get Some More Debug Output?

Jul 15, 2011

I'm trying since a couple of days to establish a TLS connection to a SMTP server in PHP via fsockopen(). I tried almost everything and googled for hours but still I didn't get it working.

The PHP code looks as follows code...

Any ideas what's wrong or how I could at least get some more debug output?

View 1 Replies View Related

Ubuntu :: Create Application That Will Let Change The Output Of The Sounds Option To Go From Speakers To Headphones?

Sep 12, 2010

I want to create a small simple application that will let me change the Output of the Sounds option to go from speakers to my headphones. I can do this easily enough through System --> Preferences --> Sound, but I'd like to create a GUI front end for me to do this. This is more as a learning exercise than anything else.What is the best language for me to build the windows to do this? Also, how do I find the commands to let me toggle the sound settings? Where are they documented? I'm using Ubuntu 10.04.

View 2 Replies View Related

General :: Create A Single Line Of Output From Multiple Variable Lines Of Input

Feb 3, 2010

I need to create a single line of output from multiple and variable lines of input in a Linux bash shell script.

My input file looks like this:

Where there may be any number of umsecondaryphonenumber lines; if there is not a umsecondaryphonenumber line for a telephonenumber, I don't want to write any output.

So, the output file should look like:

The script I have so far is:

My question is - how do print each of the elements of an array in one record - i.e. what do I put in place of howdoiprintarray?

View 2 Replies View Related

Red Hat / Fedora :: Makfile Which Can Compile A Tree For Source File And Create Output In Separate Directory

Jul 29, 2010

I am new to linux platform and my requirment is to write a makfile which can compile a tree for source file and create the output in separate directory .

View 1 Replies View Related

General :: How To Create A Dial-up Connection

Oct 27, 2010

I am using Opensuse 11.3 In windows, I can create a new network connection , choose broadband network,create and copy onto desktop, so that I can dial up to my internet service provider. In linux, how to do that?

View 1 Replies View Related

Debian :: Create DSL Connection From System Tray

Nov 5, 2015

I have decided to install Debian 8.2 in my desktop. I am test driving it in virtual box find and solve any problem I may face later on. The isp I use provides me with a shared ip every time and I have to create a DSL connection with username and password to connect to it. I can create the connection from the gui connection manager using "nm-connection-editor" command in Debian.

I am using elementary os freya and I can do so from the system tray at the top right. So, I wanted to do the same in debian also. But I can only create VLAN, VPN, Bridge, Team and Bond. There is no option for DSL but if I create one in the way mentioned before, it appears as a profile under "Wired" network option in system tray. I read some post regarding network option in system tray but I could not make them work and other I did not understand. In KDE window manager I have this feature but I want to use gnome 3.

View 0 Replies View Related

Debian Configuration :: KDE4 - How To Create VPN Connection

Nov 4, 2010

Alright, I was playing with the VPN capabilities in KDE4 on Squeeze AMD64 on my personal laptop (see my signature) and found it very easy to create a VPN connection and connect, but that's it. I made a VPN tunnel to one of my client locations as a test, but could use rdesktop to get into the server. Then I realized I couldn't ping the server either. I also lost all ability to browse the web and everything while the VPN was up. Upon checking ifconfig as root, I saw that it created "ppp0" and hat it had pulled an IP from the client network, but all of my networking capabilities were gone. What gives? What is it that I am missing?

View 4 Replies View Related

OpenSUSE Network :: UMTS: Can't Create A PPP Connection

Aug 2, 2010

I tried to build a PPP connection with umtsmon, but failed. I'm using a ZTE MF110 Stick. The reaction from my provider's support was succinct: "Linux untersttzen wir nicht." (We don't support Linux.)

The hardware seems to work fine, the stick shows a green light, and I sent a test SMS via umtsmon. The umtsmon interface successfully identifies my Provider, but does not connect.

Here is part of umtsmon debug output:

Code:
UIState::setState(6 -> 6)
##P4 t=133: ConnectionInfo:InhibitionCount ++, now is 1
##P3 t=133: TempSerialPort::TempSerialPort()
##P5 t=133: 0x75a6c0 = Query::setSerial(0x7fffece12a00)
##P3 t=134: Serial::openDev('/dev/ttyUSB2') as FD 8 - Serial instance

[Code].....

View 9 Replies View Related







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