« first day (268 days earlier)      last day (4698 days later) » 

8:33 AM
0
Q: Is it possible to redirect a logging output of the iptables' LOG chain into a separate log file?

mbaitoffI don't want to mix iptables's log output with other system logs. How could I specify a dedicated log file for iptables LOG chains output?

 
9:03 AM
0
Q: Is it possible to add more modifiers ?

aksrI'm using minimalistic WM, which is controlled by keyboard.. The main question is it possible ? How ? for example, Mod6 I know how to remap existing modifiers, but not how to add new ones. I'm using arch linux.

 
9:45 AM
0
Q: Automatically rename files when they are placed in a specific directory

Hamid.PIs it possible to automatically rename a file when it's placed in a specific directory? For example I have a directory named "dir0".I move or copy a file named "file1" to "dir0".then "file1" should rename to "file1_{current timestamp}"

 
10:30 AM
@Gilles Does sh have a regex for matching x number of the previous character. I'm trying to match ten digits in a string like [0-9]{10} would in perl.
 
0
Q: `exact duplicate` as a flag option

user unknownThe 40k-rep-heavy user Gilles commented on this question Why do you need the "./" when executing programs in the current directory? (ups - why is no link-button here?) that it is a possible duplicate. Looks like a plain-old-real-exact duplicate to me. I flagged it, but there is no exp...

 
 
2 hours later…
12:00 PM
0
Q: Virtual machine hangs when trying to login after beeing idle for som time.

Darkmageim using Microsoft Virtual PC 2007 to run a virtual linux, but after som time i cant login to it, not from the instance on the localmachine or ssh in to the machine geting the same response on both,, i get to type both username and password but after that is just stops. Not finishing the login pr...

 
 
4 hours later…
3:45 PM
@MichaelMrozek: Spelling has never been a strong point, but it's gotten worse since my daily-use language is now a 100% phonetic one. Even stranger is the homophone mistakes I've started making when I right. Still that's the first time I've used weight for wait! Thanks for the fix. (<turns red> I just noticed right/write ... I wasn't trying to be funny, just an embarrassing case in point).
 
4:41 PM
0
Q: How does bash continue to work correctly when you move its working directory?

Robin GreenOn Linux, I moved a directory to another directory using mv, and in another shell, my working directory happened to be the directory that was moved. I ran hg pull in that shell, and to my surprise, it ran correctly in the new working directory - without me having to type cd. How did that work?

0
Q: How to check if CONFIG_HIGH_RES_TIMERS enable?

Peacemooni'm using ubuntu 11.04 64bit. I have to programm some realtime application on Linux, but don't know whether the standard installation of ubuntu has CONFIG_HIGH_RES_TIMERS enable. How can i check it? Thanks

 
5:08 PM
0
Q: How to redirect kernel messages having the unique id substring into separate log file (using `rsyslog`)?

mbaitoffI am using iptables's logging feature to debug my network activity. I use certain prefix with --log-prefix parameter to uniquely identify messages in kernel log belonging to iptables output, for example ::IPT::LOG::. How can I configure rsyslog to redirect messages tagged that way into a separat...

 
 
1 hour later…
6:23 PM
0
Q: Use ssh with a specific network interface

axel22I'm using openconnect to connect to vpn. After entering my credentials, I get this: POST https://domain.name/... Got CONNECT response: HTTP/1.1 200 OK CSTP connected. DPD 30, Keepalive 30 Connected tun0 as xxx.xxx.xxx.xxx, using SSL Established DTLS connection Running ifconfig shows I have a n...

 
@Caleb No, not even in ksh or zsh extensions. Bash, ksh and zsh have regexp matching constructs but not for globbing, only as string operators. Zsh has a numeric glob pattern, e.g. <9-11> matches 9 and 09 and 000010 and 11 but not 8 or -1 or any non-digit.
 
6:53 PM
0
Q: How can I test a kernel module in a mobile device?

jpmelosI'm writing a module for the Linux kernel. When this module is ready, I'd like it to run in any device running the kernel. How can I test it in an Android phone? Do I need to recompile the whole tree for that phone with the module in to test it? If so, how can I do that? Is there some kind of in...

 
7:08 PM
0
Q: Find file by a part of its content

Christian IvicevicI have many files in a specific repository and i must find a file which has a specific string in its content (actually referencing the file Version.cc.in). What is the best solution to find it?

 
8:05 PM
0
Q: How did they manage to drive a Unix computer before mice and copy & paste?

marinaraSince Unix is 40 years old, Unix is older than the invention of the computer mouse. (actually only 3 years if Unix is from 1969 and the mouse from 1972) How in the world did a new user do anything on Unix without copy & paste? I know they always had a text editor with copy/paste, but every...

 
 
2 hours later…
9:50 PM
@Gilles Actually I don't need it for globing, I just wanted to test a string.
10
A: Automatically rename files when they are placed in a specific directory

CalebUsually you would do this programatically at the time you create or move the file, but it is possible to trigger a script whenever a file gets created or moved to a folder using incron. Setup your tab file using incrontab -e with a line like this, but with your paths of course: /path/to/dir0 IN_...

I figured it out using a case statement, but I couldn't figure out how to make that match in a normal test statement.
 
10:19 PM
@Gilles I didn't know about the zsh numeric sequence glob pattern however, that's pretty spiffy. I wish PCRE had something like that.
1
Q: How to redirect kernel messages having the unique id substring into separate log file (using `rsyslog`)?

mbaitoffI am using iptables's logging feature to debug my network activity. I use certain prefix with --log-prefix parameter to uniquely identify messages in kernel log belonging to iptables output, for example ::IPT::LOG::. How can I configure rsyslog to redirect messages tagged that way into a separat...

Seems like this should have been an edit and the answers can be merged. The rsyslog specific one can be the "right" answer, and my other answers can just be around to show the solution for other systems.
The second question is the same guy with exactly the same issue looking for the same solution, just with more specific data about the available software.
If you don't agree I won't be offended :) Just seemed kinda weird to me having two copies of it so I threw a vote out there.
Perhaps closing/merging the FIRST one instead of the new one would make more sense so that the best written question is the open one.
 
10:43 PM
@Caleb Where did you get *_[0-9]\{10\}? it just matches things like foo_3{10}. In bash you can write if [[ ! ( $1 =~ _[0-9]{10}$ ) ]] or if [[ $1 != *_[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9] ]].
 
@Gilles Actually I tested it and in the case statement it does match exactly ten digits.
This is what I couldn't find: [[ ! ( $1 =~ ... what IS that and why is the syntax I wanted supported there and in the case statement but not in a regular string pattern match?
 
0
Q: Ignorantly dd'd /dev/sda*

nona urbizI was trying to write an iso to a flash drive. I mistakenly thought that all /dev/sda* are flash drives attached to the system. I wasn't sure how to figure out which was which, so I just unplugged my flash drives and overwrote them all. In retrospect.... this was unbelievably dumb. So I now have...

 
Weird. Is that new in a recent bash version, or does it require an option? With bash 4.1.5:
`bash -c 'case $0 in [0-9]\{2\}) echo yes;; esac' '12'` → ``
`bash -c 'case $0 in [0-9]\{2\}) echo yes;; esac' '1{2}'` → `yes`
@Caleb =~ does an ERE match. case, globbing and == do a shell pattern match.
 
@Gilles GNU bash, version 4.2.0(4)-release (x86_64-pld-linux-gnu)
Hold on. Faulty test!
I have no idea what I did earlier but I can't replicate it using the code in my answer.
 
11:03 PM
0
Q: How to make my usb-wireless work on Fedora?

Tom BritoI could make it work in Ubuntu, due to this answer. But the same approach shows no result in Fedora 15 (64 bits). The device is an Asus USB N10 (wireless-usb converter): Bus 001 Device 003: ID 0b05:1786 ASUSTek Computer, Inc. Any idea how to make it work? Fedora don't came with this driver?

 
Jez
hey @Caleb
 
@Jez Howdy
 
Jez
So I'm sure you, as well as the rest in here, have more than a passing familiarity with Debian?
 
@Gilles Same results here. I took out my case and put in your ERE match in my answer. I can only think I must have had some wrong line un-commented when I was testing earlier.
@Jez Mine is only in passing, I use a minority distro that isn't deb based, but there are certainly people here that know it well.
 
Jez
right
well then you may be interested in following this Debian Q&A proposal:
3
Debian

Proposed Q&A site for users and developers of the Debian distribution of Linux.

Currently in definition.

there's one for Ubuntu, so why not Debian?
 
11:19 PM
@Jez I for one would not support that. Your argument in the discussion about this site being for advanced users is partially true, but the version of debian that caters to non-advanced users is called Ubuntu and already has it's own SE site.
Which by the way I think is a constant pain because we both field a lot of each others questions.
The Ubuntu vs the rest of Unix & Linux rift is already quite a topic, and exceptional on the SE network as being the only pair of sites with massive topic overlap that have separate sites. I don't think they are up for another. You're welcome to try your proposal, but I can't say that I'll jump in to support it.
If you have anything to ask about Debian feel free try at least TRY the Unix&Linux community here. You might be surprised to find that we do our best to answer people at the level they appear to be at, from newbie to expert.
 
Jez
@Caleb I don't agree. I'm not that advanced a user and I use Debian.
I think it's a fallacy that you have to be a geek to use Debian.
I actually find it just as easy as Ubuntu
and less hassle
 
I'm not saying you have to be, only that they don't CATER to that crowd, and questions for Debian are on-topic on Unix SE.
 
Jez
there's a big Debian community that I find caters to newbs quite well.
#debian on OFTC.
newbs who make a reasonable attempt to RTFM first
 
11:34 PM
You have a right to disagree, but since you just joined U&L today it seems a little early to be making arguments about what would and wouldn't be on topic here or how well Debian questions get covered or that newbies can't get relevant help here.
 
Jez
i was more going by the Area51 description
they probably can get relevant help here... but I see it as like the difference between linguistics, and German Language & Usage
why bother with GLU?
Debian is a wide enough topic in itself to support a SE community
 

« first day (268 days earlier)      last day (4698 days later) »