Programming :: Pipe Filename Ends On "|" With ARM-processor?
Apr 11, 2011
When issueing a "mkfifo /tmp/1"on my laptop(x86), I get this file:
Code: prw-r--r-- 1 root root 0 2011-04-11 15:09 1
If I issue the same command on a AT91SAM9260(arm), I get this file:
Code: prw-r--r-- 1 root root 0 Dec 31 17:00 1|
What could I be doing wrong, since I am getting a pipe "|" in the end of the filename?
View 2 Replies
ADVERTISEMENT
Apr 9, 2010
Is it possible to add two "filename" and "next-server" entries in /etc/dhcpd.conf in rhel5.0?
View 3 Replies
View Related
Jan 8, 2011
I want to install Arch Linux on my desktop, it is going to be a dual boot with Windows. I booted into the installation CD, but when I started cfdisk to partition my hard drive it gave me the following error: FATAL ERROR: Primairy parititon 1, partition ends in the final partial cylinder.The QuestionHow can I troubleshoot and fix this?Additional details
These will be added if asked for.
View 1 Replies
View Related
Jul 3, 2011
I have a serial ATA hard drive which was installed into a external enclosure and several Linux installed from 2008-09 when connected by eSATA to a 06 Gateway. I then removed that drive and connected it in a different computer to test that PC due to a hard drive failure. So then at the grub boot menu I did select PCLinux 2009 which then ends at "localhost login:".
This 2nd PC is a 2008 ZT 7263Xi-40 and has fairly different type of hardware components which is likely why the run level 5 or graphical login did not complete. Is localhost login: the run level 3 text mode type login then ? But when I did try to enter my user name and wait for a password request, it failed to login in, ( it said login timeout expired ), and some times when I type my user then hit enter, then it does not ask for my password, just times out.
View 4 Replies
View Related
Sep 19, 2010
I'm trying to switch from debian to fedora (13) and I'm stuck at getting yum to remove leave dependencies.
So far I've installed "yum-plugin-remove-with-leaves" and I'm able to remove leave dependencies if I invoke yum with the "--remove-leaves" argument from command line.
But this doesn't work with graphical front ends and I want to remove unused leave dependencies every time if I remove a package not just if I remember to invoke yum with the "--remove-leaves" argument.
Later on I discovered an option in "/etc/yum/pluginconf.d/remove-with-leaves.conf" named "remove_always = 1" and uncommented it. But yum doesn't seem to care. I still need to add the "--remove-leaves" argument otherwise yum isn't going to remove the leave dependencies.
How to configure yum to handle dependencies the way I used to know from apt under debian? Install a package with a graphical front end and dependencies get pulled in as needed. Uninstall a package later on and dependencies installed in the first place are removed as well if not needed by anything installed in between.
View 5 Replies
View Related
Jun 13, 2009
I am going to write a function which will do different operation base on the data type of the input parameter.
I am using C (Pure C, not C++).
The problem is that I do not know how to get the data type of the input parameter in C Language.
Can anyone tell me how to do this.
View 8 Replies
View Related
May 10, 2010
I am having a truly bizarre problem when trying to set up my sheeva plug as a backup server. I have four users (one for each member of my family) that I want to give permission to ssh in (well, sftp in but they're essentially the same) and backup to an external harddrive.
My user works perfectly well and has done since I got the plug. So does a transmission user I set up to run the transmission daemon. With the other three users, however, I get the following error after SSH asks for the user's password:
Code:
Write failed: Broken pipe
This happens whether I try locally or over my network. I haven't been able to find a solution to it at all. I've made sure that /bin/bash was set as the shell and that the home directory is writeable with the correct permissions (ls -al /home):
Code:
drwxr-xr-x 7 root root 4096 Dec 21 19:25 .
drwxr-xr-x 21 root root 4096 Dec 17 19:27 ..
[code]...
The alternative for me would be to use netatalk and AFP but the problem is that there is no native support for AFP and so things like d�ja dup backup may not be able to mount the afp drive...
View 4 Replies
View Related
Feb 9, 2010
which cropped up today after no changes to the system: I can successfully ssh into my ubuntu 64-bit 9.10 machine (via OS X with iTerm), but after about 30 seconds, the connection drops with the message "Connection reset by peer Connection to xx.xx.xx.xx closed".
If I then try to immediately ssh back in I get: "Write failed: Broken pipe". If I try to immediately ping the machine instead, I cannot ping it until the ~10th try. Eventually I can log back in again, only to be kicked off after between 5 and 60 seconds. I called the network people and their are no known issue right now with networking. The networking on the ubuntu machine is otherwise fine, it seems. In the /var/log/auth.log file, it simple says:
Quote:
Feb 9 14:19:20 harriet sshd[4134]: Accepted password for xxx from xx.xx.xx.xx port 55105 ssh2
Feb 9 14:19:20 harriet sshd[4134]: pam_unix(sshd:session): session opened for user xxx by (uid=0)
Feb 9 14:19:28 harriet sshd[4046]: pam_unix(sshd:session): session closed for user xxx
The solution I come across to a similar problem is to add a "ClientAwakeInterval" number to sshdconfig, but this (as expected) doesn't fix my problem.
View 1 Replies
View Related
Feb 14, 2011
I just upgraded my laptop (thinkpad T61) OS from Lenny to Squeeze. Everything worked fine out of box except I found when I use pcmanfm or nautilus, I couldn't locate the cursor focus by typing a letter that a filename begin with. It is something I used heavily everyday and I just couldn't lose it. Since it failed in both pcmanfm and nautilus I think it might has something to do with Squeeze.
View 2 Replies
View Related
Sep 13, 2009
I am trying to move all the txt files with a script from multiple directories to one directory, adding the parent directories of the files to the file names.It's a little complicated to explain, but i hope the script i have so far explains what im trying to do better:
Code:
for i in `ls /home/monty/scripting`
do
[code]...
View 9 Replies
View Related
Dec 26, 2010
I have ratpoison and dzen2 and I'm wondering if there is a way to have finch seld an alert to dzen when I receive a message. I currently only have dzen getting the date/time and battery level.
View 1 Replies
View Related
May 10, 2010
I wish to install ubuntu 10.04 on my desktop PC, but before I do that I need to back up my HDD. Due to alot of filenames show as having a wrong encoding, ubuntu will not let me copy the files. We are talking hundres of files in many sub folders.
The way I see it, I either have to:
1. have ubuntu back up my files in annother way (and not simply dragging and dropping as I have tried)
2.use some sort of tool to convert/fix the filenames so I wil then be able to back them up.
I've tried the following using convmv as mentioned here, but with no succes.
Code:
convmv -r --notest -f windows-1255 -t UTF-8 *
I'm using a live cd, thus the files are not located in my home folder, but on a separate parrtition.
View 9 Replies
View Related
Jun 8, 2011
I am new to Linux, but was put in charge of our company's Amazon presence. My problem is that all of the sudden, a shell script we have been using has stopped working, and returned an odd error that I simply can't decipher. The shell script is pretty simple, and is run on our crontab (however manually running it causes the same error as well). The script name is "sendh.sh" and to run it in Linux is simply typing "sh sendh.sh". Here it is:
[Code]....
Yes, obviously those files are in the directory, I can see them through the "ls" command (or through WinSCP as well). When run one by one, each command works fine, it's just when using this "sendh.sh" shell script then it fails. Does anyone know why "" is appended to the filenames when I try to run it, or what the heck "ambiguous redirect" means?
View 11 Replies
View Related
Jul 14, 2011
I'm trying to create a script that will look for a "filename" under /etc/, date stamp the file and copy it to /var/www/upload
View 5 Replies
View Related
Jun 7, 2011
in error the directory filename has " " character and i ca not open it, somebody can help me either to rename de directory or delete it, i tried to delete i and rename, but it is no possible
itcam /itm/media =>rm itmmedia
>
rm: itmmedia: A file or directory in the path name does not exist.
itcam /itm/media =>rm -i itmmedia
> s
rm: itmmedias: A file or directory in the path name does not exist.
itcam /itm/media =>
View 8 Replies
View Related
Jun 5, 2010
I have ubuntu 10.04. The installation is about 3 days old. My account type is administrator. When I try to open "synaptic package manager," "root terminal," "software sources," or "firewall configuration" the window list on the panel on the bottom of the screen informs me "starting administrativ..." and then vanishes without fanfare. Clearly it would seem these programs are all dependent on something I managed to screw up.The question then is; what is it, and how can I fix it? Also note: everything works fine on the root account.
View 2 Replies
View Related
Nov 5, 2010
I've been trying to rsync only files with mca in their filename but it's sending the whole lot across.
Code:
rsync -dtv --include='mca*' /source/source/source/source/source/source/source/ /dest/dest/dest/
View 4 Replies
View Related
Feb 25, 2010
I'm working on a Perl script that handles e-mails and attachments using MIME::Tools.
This script saves the attachments on filesystem, but whenever it finds an "&" (ampersand) into the filename (the filename is given by the "path" method of the "MIME::Body" class), it is changed into "%26" and then stored on disk.
To make an example, if an attachment is named "You & me.pdf", it is saved on disk as "You %26 me.pdf".
I also tried to change that char with a regexp and setting again the path passing the new (and working) value as a parameter to the "path" method, and if I print the value it is right, but on the filesystem is *always* stored with the "%26" string.
View 5 Replies
View Related
Jul 8, 2011
Bash 3.1.7
I have the following two examples of parameter substitution:
Code:
old1="${old%:*}" #strips off everything from the final ":" to the end.
old2="${old##*:}" #strips off everything from the beginning to the final ":".
Now, let me have
Code:
CONT=1
[Code]....
Next, it is a matter of keeping the last two caracters of CONT and strip the rest off. But how?
View 7 Replies
View Related
Oct 12, 2010
I have seen some Linux magazines covering topics like "Static/Dynamic Lib", "Makefiles", advanced concepts of "C/C++" etc. I would like to have some subscriptions of magazines dedicated to concepts like above.
View 2 Replies
View Related
Aug 8, 2009
The below snippet works fine until I use strict. Then it dies with the following error: uote:Can't use string ("html") as an ARRAY ref while "strict refs" in use at ./filetest3 line 18.I want to create @lists based on the $scalars in @type. However, "my @$ext = ()"; and push (@$ext, @files); do not play nice with strict. How do I get around this?Quote:
#!/usr/bin/perl -w
system clear;
use strict;
[code]...
View 9 Replies
View Related
May 14, 2010
Problem: can't restart programs which use socket to communicate.
Symptom: Restart Listener dies "Address already in use".
Restart Caller dies "connection refused"
System: Ubuntu 10 (and 9)
[code]...
View 3 Replies
View Related
Aug 30, 2010
The goal is to auto-update a webpage that contains links to network devices. These devices are all set to DHCP, and their hostnames are not guaranteed to stay the same, so static IPs or accessing via hostname is NOT an option.
Process: Run a script every hour or so to query devices on the local network to generate a list of responding devices by MAC address and what their current IP is (results.lst). Using a "static" MAC address list file "printers.db" as the database search "results.lst" to find specific MAC addresses. When a match is found, grab the IP from "results.lst" and update "index.html" with the new IP address. No comparison needs to be done between "results.lst" IP and "index.html" IP as I just want to overwrite whatever is there.
Here is what I have so far (using dummy data):
PRINTERS.DBProduct Mac Address
Printer1 00:00:00:00:00:11
Printer2 00:00:00:00:11:11
Printer3 00:00:00:11:11:11
Printer4 00:00:11:11:11:11
Printer5 00:11:11:11:11:11
Printer6 11:11:11:11:11:11
[Code]....
View 10 Replies
View Related
May 4, 2011
I have just upgraded to 11.04 from 10.10. I am having the following problems noticed. I'm unable to find the "Programming" menu and the "Terminal". Also the right mouse button responds just like the left mouse button in fire fox.
View 1 Replies
View Related
Jul 12, 2010
[code]...
This is what prints out: no new workspace. why the script is printing out "new workspace", when overwriteWorkspaceEnv is equal to "no". Shouldn't it print out "old workspace", since overwriteWorkspaceEnv equals "no"? I tried changing the else to an elif with $overwriteWorkspaceEnv="no" as the argument and nothing changed.
View 4 Replies
View Related
Jun 26, 2011
Is there a way to take a "char*" string in C and turn it into a "FILE*" stream?I tried searching, but all the answers I get are about C++.
View 2 Replies
View Related
Aug 12, 2009
I was trying to make an interactive directory menu.But in the directory where he has to read, there are a few directories that i don't want my menu to show and the "." and ".." still shows to...I just changed all my specific names so you can modify it easier...and here is my code..
Code:
#include <stdio.h>
#include <errno.h>
[code]....
View 12 Replies
View Related
Nov 12, 2010
I am reading the manual of termios, but I can't figure out what does prefix "tc" and "cf" stand for, say tcgetattr(), and cfgetispeed().
All functions in this manual have those prefixs. I even read the header file, termios.h and google for their meanings, but I find no clue.
And... by the way, I find "TCXONC" in the header file. What is that?
View 5 Replies
View Related
Jun 23, 2010
Is there a complete library for C++ programming in ubuntu like "MSDN"?!When using "Vim", I want to access a function's completeefinition such as it's header file, library description and parameters, etc.Is it necessary to install something from repository to obtain such a documentation? And what would be the command to access a function's description in "vim"?
View 1 Replies
View Related
Sep 20, 2010
Setup:Two Fedora machines in a large network, with a Win2003 server in the epicentre.Goal:To share files through the Public folder.Results so far:I put files in the public folder, I enable anything I can find related to networks in the Firewall (samba, nfs, and even www (http). In the public folder preferences, I set 'Share over a network' and never to ask a password. I do all this on both machines.Then I open Nautilus, and click on the network link. After a little while I get three links:Windoze network, public files on computer 1, public files on computer 2. Let's say I'm on computer 1, if I click on the public files on computer 2, I get the following error:
Code:
HTTP Error: Cannot connect to destination
Error resolving "_webdav._tcp" service "bentrein's public files on Athena.SISS" on domain
[code]....
View 6 Replies
View Related