Search Results

Search: Posts Made By: chebarbudo
6,121
Posted By MadeInGermany
Another archiver, cpio (cd / && echo tmp | cpio...
Another archiver, cpio
(cd / && echo tmp | cpio -pd /home/jail)
should create (or modify) /home/jail/tmp with the attributes of /tmp
6,121
Posted By Don Cragun
Sorry I misunderstood what you were trying to do....
Sorry I misunderstood what you were trying to do. Try:
pax -dLrw -p e /tmp /home/jail
if you're trying to create /home/jail/tmp with the same characteristics as /tmp or:
pax -dLrw -p e /tmp...
1,801
Posted By jim mcnamara
You will have to write a parser in awk to handle...
You will have to write a parser in awk to handle unvalidated user input like that.

IF you have Linux - gawk should be there. Try regular expressions for field delimiting patterns:

Example:...
4,235
Posted By drl
Hi. The last example on page Functions...
Hi.

The last example on page Functions (http://tldp.org/LDP/abs/html/functions.html) suggests that bash cannot do this.

The shell ksh has a namespace facility. So if you wrote your code as in...
4,235
Posted By MadeInGermany
Bash has local variables, but not local...
Bash has local variables, but not local functions.
As a work-around you can try a classic sub-shell (where a modern implementation might avoid the overhead of an extra process).
_myf() {
# I'm...
2,227
Posted By cero
My man page tells me this:
My man page tells me this:
8,539
Posted By bakunin
A DHCPDISCOVER just means that a newly-born IP...
A DHCPDISCOVER just means that a newly-born IP interface without an assigned IP address has issued a broadcast. It does NOT mean your server has answered it. As the IP interface does not (and should...
8,539
Posted By DGPickett
Add a firewall ?
Add a firewall ?
1,813
Posted By alister
The first script is running sed in a subshell...
The first script is running sed in a subshell environment; the second is not. The subshell is a byproduct of the shell's pipeline implementation. The difference is that when $i is incremented in a...
2,961
Posted By Lem
And what about find? If you don't have file names...
And what about find? If you don't have file names with spaces or strage chars, please try:
#!/bin/sh
for arg in "$@"; do
date | tee -a $(find /var/lib -maxdepth 1 -name "$arg") >/dev/null ...
Forum: Hardware 10-15-2010
17,902
Posted By Scott
Hi. It relates to multi-threading. It means...
Hi.

It relates to multi-threading. It means 2 cores, 4 threads. Each core can work on two tasks at the same time.
Forum: Hardware 10-15-2010
17,902
Posted By DGPickett
Intel Hyperthreading shares internal resources of...
Intel Hyperthreading shares internal resources of one core between 2 threads. I do not recall, but it might be call hyperthreading not hyperprocessing because the VM translation is shared, so they...
32,551
Posted By radoulov
I guessed right :) My idea was: if you have...
I guessed right :)
My idea was: if you have this information earlier (status 1 and 2),
just propagate it as soon as you can.
32,551
Posted By pludi
It's been a while since I've spoken MySQL... but...
It's been a while since I've spoken MySQL... but I'd do it this wayCREATE UNIQUE INDEX IX_uploaded_name_time ON uploaded ( file_name, file_time )But the ALTER TABLE syntax (the first one) should get...
32,551
Posted By radoulov
No, or better still, it depends. I...
No,
or better still, it depends.

I thought that you were processing the data record by record and at the end you were mass updating the modification time in the files table.

If the...
7,177
Posted By Corona688
The latter.
The latter.
7,177
Posted By jim mcnamara
it is from bash job control - see the 'advanced...
it is from bash job control - see the 'advanced bash scripting guide' online


I believe it is not part of POSIX, just a bash extension.
Showing results 1 to 17 of 17

 
All times are GMT -4. The time now is 08:12 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy