General :: Trying To Create One Named Pipe Using Mkfifo.but Its Not Working Properly?

Jun 22, 2010

i'm just trying to understand named pipes in linux.For that i'm just trying to create one named pipe using mkfifo.but its not working properly..following is my code snippet. so if anyone comes across the mistake i made

Code:
#include <stdio.h>
#include <errno.h>

[code]....

View 8 Replies


ADVERTISEMENT

Programming :: Orrect Command To Create A Named Pipe File?

Apr 22, 2010

My question deals with me creating a name pipe (file) in the my /group directory called chat.I then have to write a script to read from the named pipe and save data into a file called chat.log until the words End of File are passed to the program.

-When I created the named pipe file (chat) I used the mknod chat p command..Is this the correct command to create a named pipe file? -Then I'm having trouble with my script and how to make it run until the words End of File are entered in. This is what I have so far.

View 6 Replies View Related

General :: Can't Scp A Named Pipe?

Aug 2, 2011

I am trying to encrypt a file on-the-fly, redirecting the output to a named pipe [fifo]. I SSH into my server and run the command:mcrypt -k key < file > named_pipethen from my laptop I try to scp it:$ scp me@server:~/dir/named_pipe d it says scp:users/home/me/dir/named_pipe: not a regular file

View 1 Replies View Related

General :: What Is Meaning That File Is Named Pipe (FIFO)?

Jul 12, 2011

What is a pipe? and why a file is a named pipe? I am just learning linux.

View 2 Replies View Related

General :: Feed Text To File Editor From Named Pipe

Apr 24, 2011

Does any one know how can i input text by reading from a named pipe to any popular GUI based text editor?

View 5 Replies View Related

Ubuntu Servers :: Save All Of The Mail Sendmail Processes To A Named Pipe?

Apr 12, 2010

how I could save all of the mail sendmail processes to a named pipe?

View 5 Replies View Related

General :: Create A File In The Current Directory Named '5' With The Number '2'?

Aug 24, 2010

Code:
$ echo 2 * 3 > 5 is a valid inequality. This will create a file in the current directory named '5' with the number '2' in it, the names of all the files in the current directory, followed by the number '3' and 'is a valid inequality.'

What I do not understand is why 'is a valid inequality' gets written to this file. I thought it would write '2', all the file names in the current directory, then '3' into the file called '5'. Why does the 'is a valid inequality.' get written to the file also?

View 3 Replies View Related

General :: Command Pssh Is Not Working - ImportError: No Module Named Basethread

Apr 5, 2011

I use ubuntu 10.04 and here's the problem. I've installed pssh, but when I type pssh i got this message

Code:

# pssh
Traceback (most recent call last):
File "/usr/bin/pssh", line 29, in <module>
from psshlib.basethread import BaseThread
ImportError: No module named basethread

Also, if I type man pssh I got this message:

See 'man 7 undocumented' for help when manual pages are not available. I've reinstalled it, but nothing changed. I've found that basethread is located here:

/usr/lib/python2.5/site-packages/psshlib/basethread.py
/usr/lib/python2.5/site-packages/psshlib/basethread.pyc

View 4 Replies View Related

General :: Create A Directory Named Like His Parent Directory

May 26, 2011

I need to create a directory named just like his parent.

Example:

I tried this but because there is "Space Characters" in the name of Parent directory, my script fails.

View 8 Replies View Related

Software :: File /var/lib/named/var/named/reverse/named.zero Failed: File Not Found

Mar 14, 2009

Mandriva 2009, BIND 9.5.0-P2. Named will start however I'm getting the above error as well as these:

14-Mar-2009 15:45:37.084 general: error: zone 0.in-addr.arpa/IN: loading from master file /var/lib/named/var/named/reverse/named.zero failed: file not found
14-Mar-2009 15:45:37.084 general: error: zone 0.0.127.in-addr.arpa/IN: loading from master file /var/lib/named/var/named/reverse/named.local failed: file not found

[code].....

Named shows to be running but with the errors above I know it's not running correctly. I also copied the above dir's over to /var/lib/named/var/lib/named which is where I 'believe' it's chroot'd at, though I could be wrong since I'm unfamiliar with chroot.

View 14 Replies View Related

Programming :: Handle A Broken Pipe Exception (SIGPIPE) In FIFO Pipe?

Mar 2, 2011

I've written a simple server in linux used fork to create a FIFO pipe.The server create two FIFO pipe.One for server read data from client and write data to client.Then another pipe for client read data from server and write data to server.When the server read data from a client used server-pipe and then write data to client.But ,if the client no read open the pipe,the server side write will be crashed because of a broken-pipe SIGPIPE. How to check whether the read side is opened?Or,how to catch the SIGPIPE,and then my server will still execute on,not crashed!!

View 5 Replies View Related

Software :: Create Launcher In Fedora 13 Which Will Run Simple Script Named Proj4a?

May 8, 2011

I am trying to create a launcher in Fedora 13 which will run a simple script named proj4a. I run this script from the command line as follows:

$ $HOME/proj4a >$HOME/proj4a_out

where proj4a is an executable file in my home directory and the output goes into a file, proj4a_out, in my home directory. Everything works fine. I created a launcher called Proj4a and in the command field I entered the following:

' $HOME/proj4a >$HOME/proj4a_out'

When I click on the launcher it comes back with the following: There was an error launching the application.

View 5 Replies View Related

General :: SCP Is Not Working Properly?

Aug 1, 2010

I've noticed that, I can not copy a file trough scp .here is an example:

[root@Radius ~]# scp 123.txt /etc/logrotate.d/radiusd.log "nasser@192.168.8.46:/tmp"
nasser@192.168.8.46's password:
[root@Radius ~]#

[code]....

View 2 Replies View Related

General :: XMMS2 Not Working Properly?

Jan 18, 2010

I am currently trying to make a front-end (client) for xmms2. However, I have run into a road block. I need to get the current number of seconds of the current playing song, so one would think to use:

Code:
xmms2 current "${playtime}"
However, all this does is return a blank line. Infact, if I try to do any "formatting" for

[code]...

View 4 Replies View Related

Networking :: PING - Pipe 2 Versus Pipe 3

Apr 10, 2009

I'm doing ping between 2 RH servers through a VPN site2site tunnel and in some times I got in the result pipe 2 and another pipe 3 as I mark it in blue color below.

e.g.

64 bytes from 192.168.1.10: icmp_seq=0 ttl=128 time=0.229 ms
64 bytes from 192.168.1.10: icmp_seq=1 ttl=128 time=0.287 ms
64 bytes from 192.168.1.10: icmp_seq=2 ttl=128 time=0.278 ms

[code]....

What's the difference between pipe 2 and pipe 3 and what's the meaning of it?

View 1 Replies View Related

General :: Auto Mounting Is Not Working Properly?

Apr 30, 2010

i am using ubuntu 8.04 and i am facing a problem of mounting external pen drive, exernal harddisk or even other /dev/ partitions in my login mount is not working so i manually mount the partition by mount command .. but i dont know how i can resolve this problem ...

fdisk -l currently returns as
Disk /dev/sda: 160.0 GB, 160000000000 bytes
255 heads, 63 sectors/track, 19452 cylinders

[code]...

View 1 Replies View Related

General :: Haven't Been Able To Get Wireless Working Properly

Jan 31, 2010

I installed Kubuntu 9.10 this morning and haven't been able to get my wireless working properly. I can connect to my network (WEP 128bit key) and acquire an IP address without any problems. But as soon as it connects it stops talking to the router (about 4 pings after it connects). The pings then change from a reply to saying "Destination host unreachable", even though it works fine on the Windows box I'm sending this from.

View 1 Replies View Related

General :: Usermod Command Not Working Properly?

Mar 22, 2011

I created a user named Bob. Now i want to change its home directory to be Bob1. I did this

usermod -d /home/Bob1 Bob

but not effect !!!

The name was still Bob. What might be issue ?

View 8 Replies View Related

Server :: /etc/named.conf:57: Open: /etc/named.root.hints: File Not Found

Apr 1, 2011

I am using Cent OS 5.5 and i want configure DNS, but while configuring bind i am getting below error.

#/etc/init.d/named restart Stopping named: [ OK ]
Starting named:
Error in named configuration:
/etc/named.conf:57: open: /etc/named.root.hints: file not found[FAILED]

View 2 Replies View Related

General :: Audio With Banshee And Vlc Player Not Working Properly

Jun 16, 2010

1). vlc player not working properly..when i play the video in vlc audio is not clear its strucks every few min.. but video is moving nice....how to solve this problem i'm newbie to linux open suse

2)when i play Mp3 songs in banshee its good but some times its hang...

3)how to restore the linux?(i mean how to restore the operating system)

View 2 Replies View Related

General :: Sound Not Working Properly On Runescape - Java - Debian GNU

May 30, 2010

My sound on Runescape stops and picks up, is very choppy and annoying. I'm using Debian "Lenny". Sound on everything else works just fine (Flash, VLC, etc...)

Here are the Java packages I have installed:

Here is my computers hardware:

Intel Core 2 Duo 1.8Ghz
2GB RAM
250GB HDD
nVidia 8600GT

View 10 Replies View Related

Fedora Networking :: Named Forwarders Not Working

May 27, 2011

I'm trying to setup a DNS name server using fedora14. Everything is working in the LAN, I've no errors in log/messages, but cannot ping outside world. Can ping IP addresses but not domain names.

View 4 Replies View Related

OpenSUSE :: Downloaded A Widget Named Yet Another Netspeed Monitor.it Is Not Working?

Jun 5, 2011

i downloaded a widget named yet another netspeed monitor.it is not working.it says please see the following image

View 4 Replies View Related

OpenSUSE Install :: Create RAID For Second HDD Which Is Named "sdb"?

Dec 14, 2009

When in YaST/System/Partitioner I try to create RAID for my second HDD which is named "sdb".

My original "sda" hdd is partitioned as follows:
dev/sda, disk type
dev/sda1, linux swap, swap, swap
dev/sda2, linux native, ext3, /
dev/sda3, linux native, ext3, /home

When trying to partition second "sdb" hdd I go to "/dev/sdb" under "Hard Disks", then create partition on "/dev/sdb" ... new partition/maximum size, press next button, do not format partition/0xFD linux raid/do not mount partition. After that "swap" partition of the whole size of disk gets created. However when trying "raid" in system/partitioner/add raid I end up with ("ERROR" there are not enough suitable unused devices to create raid).

View 4 Replies View Related

Ubuntu Servers :: .htaccess Working, Rewrite Not Working Properly?

Apr 25, 2011

I had a problem with apache2 and getting .htaccess working. I have done some things and i believe its working the ErrorDocument command is anyway. I believe there may be some problems with the rewrites though.Im trying to take a urlhttp://localhost/showthread/123and make it display whats on http://localhost/index.php?showthread=123The rewrite rule is Quote:

Options +FollowSymLinks
RewriteEngine on
RewriteRule ^showthread/([^/.]+)/?$ index.php?showthread=$1 [L]

[code]....

View 8 Replies View Related

General :: "file" Command Not Working Properly For UTF8 Files?

Oct 30, 2009

I have some files which are UTF8 and have first line as blank. It shows as data file by "file" command. If I remove the blank line, it shows it as UTF8 text file. I have to choose displayable text files from many files, so I used "file" command.

Note: I do not have permission to attach file. So not able to attach sample file here.

View 5 Replies View Related

Ubuntu Servers :: Create Script To Keep Machine Cluster Synced Properly Until Failover

Apr 26, 2010

I've been reading up on clustering a bit and want to create simple 2 machine cluster of which the 2nd one will turn on and take over traffic at the previous machine's IP (I'm aware there will be a couple minutes of downtime while the failover server boots). I've looked into doing a simple DNS round robin, but I think both machines would need to be online all the time for this to function correctly. I've also looked into linux-HA and GlusterFS but both seem a little intense for the simple failover I'm trying to achieve. One catch if approaching with DNS round robin... the server that I want to setup with a failover also operates as a DNS server. Anyone know the simplest way to complete this? One idea I had (that seemed like a bit of manual work): Create script that runs every 60 secs through CRON on firewall (running pfsense) and have it check if master-server is up. If it's not, it will send a WOL signal to the slave, which has a mirrored image of the first. the problem I have with that is I will also need to create a script to keep both synced properly which seems almost impossible if one is shut down until failover (my thought was periodic rsyncs.) Perhaps creating a FS to direct all files to for the master/slave would be the only way around that.

View 1 Replies View Related

General :: Keyboard Won't Pipe?

Dec 23, 2010

I'm on the command line, as the install for the proprietary ATI driver has failed. I'm following the instructions for troubleshooting here but the pipe "|" key is not working - a tilda "~" shows up when I press it.I'm wondering if this is because of the keyboard being set as UK instead of US? I did have to change this setting at the graphical login initally, whether from choosing this setting by mistake or the installer choosing it automatically when I chose English UK for the language.

View 3 Replies View Related

General :: Clone Or Create Image Of Working Servers Having Centos5.3?

Dec 15, 2010

i have centos 5.3 , i want to clone or create image of my working servers having centos5.3 in another hardisk so that if my server down i can just put this another hardisk which having image or clone of the crash server and my server will up in small amount of time is it possible or not if yes then how

View 4 Replies View Related

CentOS 5 Server :: Named Won't Start \ Named Stop But Does Not Start Again?

Oct 28, 2009

i've made a big update of almost 300Mb.I'had a working DNS server.Now, when i boot the box, named works and it resolves all the clients.If i make any change (enter a new client for example) and of course i restart named (service named restart), named stop but does not start again !!!In order to get a working named, i 'm obliged to reboot the box?

View 6 Replies View Related







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