Re: Tax software for Debian (Lenny)?

2010-02-05 Thread Girish Kulkarni
On Fri, 5 Feb 2010 20:35:26 -0800 Mark wrote:
> I've done the typical Internet scrubbing and didn't find anything
> specific to tax software for Debian (something similar to TurboTax,
> for example).  I found a few interesting options but nothing in the
> official Debian packages.  Here's what I have so far as options
> (on-line versions), any insight into the most Linux/Debian-friendly
> one of these?  I live in the USA and run Lenny on the machine I"ll
> do my taxes with.

GnuCash (http://www.gnucash.org/) has some Income Tax related
features.  Maybe useful?  

Girish.

-- 
Girish Kulkarni - Allahabad, India - http://athene.org.in/girish


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Re: Pango: Iceweasel vs. Chrome

2010-02-05 Thread Girish Kulkarni
On Wed, 3 Feb 2010 09:30:07 + (UTC) Liam O'Toole wrote:
> Basically the difference is that Chrome repects the XSETTINGS
> configuration but not the detailed fontconfig settings. If you are
> running both browsers in a GNOME session then Chrome will use
> XSETTINGS. 

Thanks for the reply.  I'm quite unfamiliar with both XSETTINGS and
fontconfig, and would like to translate the difference between Chrome
and Iceweasel (that you point out) into improvement in Iceweasel's
font-handling.  Wonder if there's some documentation on this?  

Thanks,
Girish.

-- 
Girish Kulkarni - Allahabad, India - http://athene.org.in/girish


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Re: Tax software for Debian (Lenny)?

2010-02-05 Thread Marc Shapiro

Mark wrote:
I've done the typical Internet scrubbing and didn't find anything 
specific to tax software for Debian (something similar to TurboTax, for 
example).  I found a few interesting options but nothing in the official 
Debian packages.  Here's what I have so far as options (on-line 
versions), any insight into the most Linux/Debian-friendly one of 
these?  I live in the USA and run Lenny on the machine I"ll do my taxes 
with.


-taxact.com  http://www.taxactonline.com/
-taxslayer.com  http://www.taxslayer.com/
-taxgeek (looks a couple years old) http://taxgeek.sourceforge.net/


I have been using TaxAct for several years.  This year they made some 
changes making entry much easier by providing an option for full screen 
entry on many forms instead of question by question.


--
Marc Shapiro
mshapiro...@yahoo.com



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org




Tax software for Debian (Lenny)?

2010-02-05 Thread Mark
I've done the typical Internet scrubbing and didn't find anything specific
to tax software for Debian (something similar to TurboTax, for example).  I
found a few interesting options but nothing in the official Debian
packages.  Here's what I have so far as options (on-line versions), any
insight into the most Linux/Debian-friendly one of these?  I live in the USA
and run Lenny on the machine I"ll do my taxes with.

-taxact.com http://www.taxactonline.com/
-taxslayer.com http://www.taxslayer.com/
-taxgeek (looks a couple years old) http://taxgeek.sourceforge.net/

Thanks!
Mark


Re: one website gives "address not found" from LAN

2010-02-05 Thread Ken Teague
On Fri, Feb 5, 2010 at 5:16 PM, Adam Hardy  wrote:
> It is running dnsmasq. It's a gateway and firewall with two NICs, one for
> the net and one for the LAN.

My assistance at this point will be rather limited, as I've never used
dnsmasq and I don't have a means to set it up and test it now.


> I don't know why the first lookup is failing with the default nameserver
> from my ISP - but it only fails intermittently.

Being that it fails intermittently and it seems to fail while querying
your own name server, I have a feeling the problem is with dnsmasq.


> I have a small hunch that it might be to do with my setup because the
> external NIC gets its ip address via DHCP from the ISP and refreshes every
> 30 seconds or so. I just don't know what to check for next. There is no
> other website I have this problem with.

Rather than using "host", try using nslookup, but don't use it in the
same way you're using host.  Instead, type nslookup by itself to enter
its command shell.  From there, when you perform a lookup, it will
tell you which server it's querying to obtain the answer.

it...@mybox:~$ nslookup
> www.trade2win.com
Server: 10.10.2.25
Address:10.10.2.25#53

Non-authoritative answer:
www.trade2win.com   canonical name = panna-229.trade2win.com.
Name:   panna-229.trade2win.com

In my example, my box is querying my internal DNS server on 10.10.2.25
to obtain the answer.  Run the same query against your local host
multiple times to see how persistent the problem is.  Once you've done
that, switch to query against a separate server and run the query
against it multiple times.

> server 4.2.2.1
Default server: 4.2.2.1
Address: 4.2.2.1#53
> www.trade2win.com
Server: 4.2.2.1
Address:4.2.2.1#53

Non-authoritative answer:
www.trade2win.com   canonical name = panna-229.trade2win.com.
Name:   panna-229.trade2win.com
Address: 208.43.120.229
> www.trade2win.com
Server: 4.2.2.1
Address:4.2.2.1#53

Non-authoritative answer:
www.trade2win.com   canonical name = panna-229.trade2win.com.
Name:   panna-229.trade2win.com
Address: 208.43.120.229
> www.trade2win.com
Server: 4.2.2.1
Address:4.2.2.1#53

Non-authoritative answer:
www.trade2win.com   canonical name = panna-229.trade2win.com.
Name:   panna-229.trade2win.com
Address: 208.43.120.229


Note that I'm querying for www.trade2win.com here and we're getting
non-authoritative answers.  To get an authoritative answers, we need
to query for the domain name followed by a period.  Not only that, but
we need to set our query type to any.

> set type=any
> trade2win.com.
Server: 4.2.2.1
Address:4.2.2.1#53

Non-authoritative answer:
trade2win.com   text = "v=spf1 mx ip4:64.78.0.0/18 include:sfarm1.com
include:aspmx.googlemail.com ~all"
trade2win.com
origin = dns1.registrar-servers.com
mail addr = hostmaster.registrar-servers.com
serial = 2008080808
refresh = 10001
retry = 1801
expire = 604801
minimum = 3601
trade2win.com   mail exchanger = 30 ALT2.ASPMX.L.GOOGLE.com.
trade2win.com   mail exchanger = 40 ASPMX2.GOOGLEMAIL.com.
trade2win.com   mail exchanger = 50 ASPMX3.GOOGLEMAIL.com.
trade2win.com   mail exchanger = 60 ASPMX4.GOOGLEMAIL.com.
trade2win.com   mail exchanger = 70 ASPMX5.GOOGLEMAIL.com.
trade2win.com   mail exchanger = 10 ASPMX.L.GOOGLE.com.
trade2win.com   mail exchanger = 20 ALT1.ASPMX.L.GOOGLE.com.
Name:   trade2win.com
Address: 208.43.120.229
trade2win.com   nameserver = dns1.registrar-servers.com.
trade2win.com   nameserver = dns3.registrar-servers.com.
trade2win.com   nameserver = dns2.registrar-servers.com.

Authoritative answers can be found from:
>

What the heck?  We're returned to the nslookup prompt without it
telling us where we can obtain authoritative answers.  What's up with
that??  Let me try my own internal DNS server.

> server 10.10.2.25
Default server: 10.10.2.25
Address: 10.10.2.25#53
> trade2win.com.
Server: 10.10.2.25
Address:10.10.2.25#53

Non-authoritative answer:
Name:   trade2win.com
Address: 208.43.120.229
trade2win.com   nameserver = dns3.registrar-servers.com.
trade2win.com   nameserver = dns1.registrar-servers.com.
trade2win.com
origin = dns1.registrar-servers.com
mail addr = hostmaster.registrar-servers.com
serial = 2008080808
refresh = 10001
retry = 1801
expire = 604801
minimum = 3601
trade2win.com   mail exchanger = 50 aspmx3.googlemail.com.
trade2win.com   text = "v=spf1 mx ip4:64.78.0.0/18 include:sfarm1.com
include:aspmx.googlemail.com ~all"

Authoritative answers can be found from:
dns3.registrar-servers.com  internet address = 72.34.41.47
dns1.registrar-servers.com  internet address = 74.81.64.51


That's more like it.  Now, for grins and giggles, lets try querying
against the authoritative servers a few times.

> server 72.34.41.47
Default server: 72.34.41.47
Address: 72.34.41.47#53
> www.trade2win

cannot install to AMD Geode LX800 machine

2010-02-05 Thread Hideki Yamane
Hi,

 I was asked from a user who want to install Debian but I couldn't solve 
 his problem, so I want your help.

 He uses "Kojinsha SA5ST12A", it has AMD Geode LX800 chip.
 
http://jp.kohjinsha.com/support/content/supt/sa/sa5st12a/specification/index.html
 (Japanese)

 He tried to install with debian-503-i386-businesscard.iso but the screen 
 comes to blank with white. ( http://www.youtube.com/watch?v=0sRZ2Bup6ks )

 I suggested to use "fb=false" as release note says, but it seems not to help.
 http://www.debian.org/releases/stable/i386/ch05s03.html.ja#installer-args

 If you have any suggestions about above problem, please let me know.
 (Please CC to me, I'm not on the list)

-- 
Regards,

 Hideki Yamane henrich @ debian.or.jp/iijmio-mail.jp
 http://wiki.debian.org/HidekiYamane


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Re: auto-mounting disks that might not be present (e.g. usb drives)

2010-02-05 Thread Arthur Marsh

Richard Hector wrote, on 06/02/10 09:07:

On Sat, 2010-02-06 at 07:39 +1030, Arthur Marsh wrote:

Last question is, what guarantee is there that the device file will have 
been generated (assuming that the USB drive is present) before the 
@reboot cron event is run?


The standard mount script is run in runlevel S, which is entered before
the numbered runlevels which is where cron is started. So I'm guessing
if the device is there in time to be mounted from fstab, it will be
there before cron runs.

Richard


Thanks, that turned out to be the case and appears to work well.

Arthur.


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org




Re: [OT] - Bash question: get output as a variable?

2010-02-05 Thread Stephen Powell
On Fri, 5 Feb 2010 18:27:49 -0500 (EST), Bob McGowan wrote:
> If someone wanted to, they could write a single program that would read
> input/write output from/to two or more descriptors, and use it to create
> a multi-path'ed I/O processing sequence, but writing it to prevent
> blocking on one input/output, so it could continue working on the other
> pair, would be a bit hairy.
> 
> The fifo node makes this sort of thing easy to do.

Well, as Mr. Spock would say,

   Fascinating!

It appears that the combination of a shell pipeline and
fifos makes the implementation of a multi-streamed pipeline
possible.  The problem is the lack of "stages",
especially the stream splitting and stream joining ones.

Thank you, Bob and Boyd, for your insights and expertise.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Re: one website gives "address not found" from LAN

2010-02-05 Thread Adam Hardy

Ken Teague on 05/02/10 23:42, wrote:

On Sun, Jan 31, 2010 at 4:27 AM, Adam Hardy  wrote:

and finally my resolv.conf (rewritten by dhcp.client when picking up IP
address from the DSL modem):

a...@isengard:~$ cat /etc/resolv.conf
domain localdomain
search localdomain
nameserver 127.0.0.1
nameserver 194.74.65.68


Your resolv.conf is pointing to 127.0.0.1 for your primary nameserver.
 Are you running DNS services on your local host?



a...@isengard:~$ host www.trade2win.com
Host www.trade2win.com not found: 3(NXDOMAIN)


Here, you're querying your primary nameserver for the IP address of
www.trade2win.com.  It's failing to resolve it.



And then with another nameserver:




a...@isengard:~$ host www.trade2win.com 4.2.2.1
Using domain server:
Name: 4.2.2.1
Address: 4.2.2.1#53
Aliases:



www.trade2win.com is an alias for panna-229.trade2win.com.
panna-229.trade2win.com has address 208.43.120.229
Host panna-229.trade2win.com not found: 3(NXDOMAIN)
Host panna-229.trade2win.com not found: 3(NXDOMAIN)


Now you're telling host to ask 4.2.2.1 to resolve www.trade2win.com
and it succeeds.

I'd recommend you check your local host to see if it's running DNS
services.  If it is, you'd need to find out why it's failing to
resolve this host.


It is running dnsmasq. It's a gateway and firewall with two NICs, one for the 
net and one for the LAN.


I don't know why the first lookup is failing with the default nameserver from my 
ISP - but it only fails intermittently.


I have a small hunch that it might be to do with my setup because the external 
NIC gets its ip address via DHCP from the ISP and refreshes every 30 seconds or 
so. I just don't know what to check for next. There is no other website I have 
this problem with.



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org




Re: Google Earth kills system

2010-02-05 Thread Freeman
On Fri, Feb 05, 2010 at 12:49:13AM -0800, evenso wrote:
> 
> I haven't found much evidence of what happened. None of the upgraded
> packages in that period seem X related.  I've just been living in CLI land
> until I get time to repair and investigate more.

Although Googleearth is not mentioned, some of the segfault crashes in below
testing packages were happening to my system at the same time Googleearth
was causing similar problems.  So it is CLI mode testing for me until
whenever. 

Special attention to item 2, libgl1-mesa.dri, marked fixed in 7.7-1, which
is in experimental and doesn't even apply to an i386 system outside of hurd
and kfreebsd. 

begin list-

grave bugs of xserver-xorg (-> 1:7.5+3) 
 #568421 - X hangs after upgrade from 7.4 to 7.5

grave bugs of libgl1-mesa-dri (-> 7.6.1-1) 
 #565427 - libgl1-mesa-dri: any 3d applications completely freeze system
 # (Fixed: 7.7-1)

critical bugs of xserver-xorg (-> 1:7.5+3) 
 #567619 - xserver-xorg: After upgrading squeeze xserver stops responding
 #567318 - gnome-screensaver causes X session crash
grave bugs of xserver-xorg-video-nv (-> 1:2.1.15-1) 
 #568170 - xserver-xorg-video-nv: nv driver causes segfault in X server
 # during InitOutput
grave bugs of xserver-xorg-input-all (-> 1:7.5+3) 
 #567756 - xserver-xorg-input-all: keyboard not working after squeeze
 # upgrade
grave bugs of xserver-xorg-video-sis (-> 1:0.10.2-1) 
 #546714 - sis: color issues with 0.10.1 and server 1.6
serious bugs of xserver-xorg-video-intel (-> 2:2.9.1-2) 
 #567563 - Unable to switch to the console
serious bugs of xserver-xorg-video-nv (-> 1:2.1.15-1) 
 #383465 - Contains obfuscated source code, DFSG violation?
serious bugs of xserver-xorg-input-wacom (-> 0.10.3+20100109-1) 
 #567569 - Unable to bind some core keys to pad buttons


critical bugs of xserver-xorg (-> 1:7.3+20) 
 #567318 - gnome-screensaver causes X session crash
grave bugs of xserver-xorg-video-nv (-> 1:2.1.15-1) 
 #568170 - xserver-xorg-video-nv: nv driver causes segfault in X server
 # during InitOutput
grave bugs of xserver-xorg-input-all (-> 1:7.5+3) 
 #567756 - xserver-xorg-input-all: keyboard not working after squeeze
 # upgrade
grave bugs of xserver-xorg-video-sis (-> 1:0.10.2-1) 
 #546714 - sis: color issues with 0.10.1 and server 1.6
serious bugs of xserver-xorg-video-intel (-> 2:2.9.1-2) 
 #567563 - Unable to switch to the console
serious bugs of xserver-xorg-video-nv (-> 1:2.1.15-1) 
 #383465 - Contains obfuscated source code, DFSG violation?
serious bugs of xserver-xorg-input-wacom (-> 0.10.3+20100109-1) 
 #567569 - Unable to bind some core keys to pad buttons

end list

-- 
Kind Regards,
Freeman


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Re: Bash question: get output as a variable?

2010-02-05 Thread Bob McGowan
Ken Teague wrote:
> On Fri, Feb 5, 2010 at 10:10 AM, Chris Jackson
>  wrote:
>> Use $() like you do with the date command. You have to redirect stderr back
>> to stdout, which means running it in a subshell:
>>
>>
>> FILES=$( ( tar -zcvf - *  --exclude-from $EXCLUDES  | openssl des3 -salt -k
>> $1 | dd of=$(hostname)-$(date +%Y%m%d).tbz ) 2>&1 )
>>
>> It may cause unexpected results if there're spaces in the filenames though.
> 
> I think this is the best method I've seen thus far.  Putting the data
> into an array should avoid problems with file names containing spaces.
>  I don't understand why he would stderr in it, though.  I'd like to
> know what the OP plans to do with the list of processed files.
> 
> 

As noted in some earlier posts, using 'tar -f -' causes the archive tar
creates to be written to stdout.

This means the list of file names printed because of the 'v' option,
must be written to some other file descriptor, else it will corrupt the
archive contents.

The "usual" way for an app to do this is to write to stderr, which is
what 'tar' does.

The tar sdtout is already redirected in the initial pipeline.  Putting
the pipeline in parenthesis causes the entire thing to run in a
subshell.  The '2>&1' takes the stderr of the subshell and puts it onto
the stdout of the current shell, which is then redirected by the $(...)
into the variable.

-- 
Bob McGowan


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Re: Bash question: get output as a variable?

2010-02-05 Thread Ken Teague
On Fri, Feb 5, 2010 at 12:42 AM, Mart Frauenlob
 wrote:
> tar ... 2> "$filename"
> mapfile array1 < "$filename"
>
> (don't know actually why '-u 2' option for mapfile does not complete for
> me? would make it a 'one-liner'.)
>
> on bash4.0+


This is a great example as well.  The only problem is bash4 isn't
readily available to people using lenny.  Also, wouldn't he just want
to redirect sdtout and not stderr?  I guess it all depends on what he
wants to do with the list.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Re: Bash question: get output as a variable?

2010-02-05 Thread Tony Nelson
On 10-02-04 19:06:58, Stephen Powell wrote:
> On Thu, 4 Feb 2010 17:42:45 -0500 (EST), Javier Barroso wrote:
> > In this case output goes to stderr, so:
> > 
> > tar -zcvf - * --exclude-from $EXCLUDES 2> /tmp/data$$ | openssl ...
> 
> Is that something you just have to find out by trial and error?
> I checked the man page for tar, and there's nothing in there about
> the -v output being written to stderr.  I'll take your word for it,
> but in the general case, it's hard to tell.  Since stdout and
> stderr both default to the terminal, and since the doc doesn't
> say, how else would you know other than by trial and error?

As the man page notes, see `info tar`.  The answer is buried in "3.9 
Asking for Confirmation During Operations".

-- 

TonyN.:'   
  '  


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Re: one website gives "address not found" from LAN

2010-02-05 Thread Ken Teague
On Sun, Jan 31, 2010 at 4:27 AM, Adam Hardy  wrote:
> and finally my resolv.conf (rewritten by dhcp.client when picking up IP
> address from the DSL modem):
>
> a...@isengard:~$ cat /etc/resolv.conf
> domain localdomain
> search localdomain
> nameserver 127.0.0.1
> nameserver 194.74.65.68

Your resolv.conf is pointing to 127.0.0.1 for your primary nameserver.
 Are you running DNS services on your local host?


> a...@isengard:~$ host www.trade2win.com
> Host www.trade2win.com not found: 3(NXDOMAIN)

Here, you're querying your primary nameserver for the IP address of
www.trade2win.com.  It's failing to resolve it.


> And then with another nameserver:


> a...@isengard:~$ host www.trade2win.com 4.2.2.1
> Using domain server:
> Name: 4.2.2.1
> Address: 4.2.2.1#53
> Aliases:

> www.trade2win.com is an alias for panna-229.trade2win.com.
> panna-229.trade2win.com has address 208.43.120.229
> Host panna-229.trade2win.com not found: 3(NXDOMAIN)
> Host panna-229.trade2win.com not found: 3(NXDOMAIN)

Now you're telling host to ask 4.2.2.1 to resolve www.trade2win.com
and it succeeds.

I'd recommend you check your local host to see if it's running DNS
services.  If it is, you'd need to find out why it's failing to
resolve this host.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Warning when installing postgresql-common (94lenny)

2010-02-05 Thread Oliver Schneider
Hi,

I got the following warning line when installing PGSQL just a few minutes ago. 
The line reads:

supported_versions: WARNING: Unknown Debian release: 5.0.4

Should I worry?


Thanks,

// Oliver


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Re: Bash question: get output as a variable?

2010-02-05 Thread Ken Teague
On Fri, Feb 5, 2010 at 10:10 AM, Chris Jackson
 wrote:
> Use $() like you do with the date command. You have to redirect stderr back
> to stdout, which means running it in a subshell:
>
>
> FILES=$( ( tar -zcvf - *  --exclude-from $EXCLUDES  | openssl des3 -salt -k
> $1 | dd of=$(hostname)-$(date +%Y%m%d).tbz ) 2>&1 )
>
> It may cause unexpected results if there're spaces in the filenames though.

I think this is the best method I've seen thus far.  Putting the data
into an array should avoid problems with file names containing spaces.
 I don't understand why he would stderr in it, though.  I'd like to
know what the OP plans to do with the list of processed files.


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Re: Bash question: get output as a variable?

2010-02-05 Thread Ken Teague
On Fri, Feb 5, 2010 at 7:44 AM, bruno  wrote:
> because it's a simplier way to get the list into a variable

Can you please explain how it's simpler.  The method I suggested
certainly isn't as easy, but the method I suggested merely showed a
detailed example.  Others here are coming up with 1 or 2 liners that
can do this without having to process the archive a 2nd time.

I don't see how the example you provided puts the list into a
variable.  Would you be so kind as to go into more detail regarding
your suggestion?


> because the script gets much clearer

I agree that your suggestion would be much clearer, and your
suggestion may suit the needs of the OP.  I suppose it's just my
personal feelings to not sacrifice efficiency for making a script
easier to understand.  Comments can be added to the script to explain
how parts of it function.


> because it is not safe to rely on stderr since it is supposed to display
> errors, which it might do as well

Others have recommended stderr.  I'm not sure why.  The method that
would be most effective would be to direct stdout, not stderr.

it...@mybox:~$ ls -l
-rw-r--r-- 1 itsme itsme 0 2010-02-05 14:54 file1
-rw-r--r-- 1 itsme itsme 0 2010-02-05 14:54 file2
-rw-r--r-- 1 itsme itsme 0 2010-02-05 14:54 file3
-rw--- 1 root   root0 2010-02-05 14:53 somefile
it...@mybox:~$ tar cvf test.tar somefile file1 file2 file3 >out.txt
tar: somefile: Cannot open: Permission denied
tar: Error exit delayed from previous errors
it...@mybox:~$ cat out.txt
file1
file2
file3


> because he would get the list of the files that have really been compressed,
> not just the processed ones

Not if he uses stdout.  The example shown above only shows what was
added to the tar file.


> because the overhead may not be worth the complication of trying to do both
> things at the same time

Efficiency vs clarity; sometimes it's a personal preference, other
times it may not be.  For example, if I'm passing this script on to
someone else that isn't familiar with the scripting language, I think
clarity would be paramount.  Otherwise, I'd go for efficiency.


> because he might as well never use the v option (it's not useful in my
> proposition either, and it would even reduce the overhead)

The method you suggested is to process the archive a 2nd time to get
the listing, and to use -tv.  That causes more overhead than getting
the list of processed files while the archive is being created.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Re: [OT] - Bash question: get output as a variable?

2010-02-05 Thread Bob McGowan
Boyd Stephen Smith Jr. wrote:
> On Friday 05 February 2010 16:33:12 Bob McGowan wrote:
>> Boyd Stephen Smith Jr. wrote:
>>> mkfifo "LOCM" &&
>>> mkfifo "FIN" &&
>>> (
>>> "<" | "NFIND" | "LOCATE" 2> "LOCM" | "FANINANY" 2< "FIN"| ">" &
>>> "LOCATE" < "LOCM" > "FIN" &
>>> wait
>>> )
>> which would disallow having the
>> "parallel" processing implied by the above diagram.
> 
> My example runs in parallel.  It's virtually required when using fifos.  They 
> aren't normal files -- only so much data can be written to their internal 
> buffer before further writes block.
> 
> In this case the shell actually starts at least 6 processes.  One for each 
> "utility".  Prior to doing the "exec" call in each process, it sets up the 
> pipes and redirection.  It doesn't wait for the processes to finish (notice 
> the '&' at the end of the pipelines) until I use the wait shell-builtin.
> 
> When the "LOCATE" utility on the second line starts trying to read from stdin 
> (LOCM) it will block until the "LOCATE" utility on the second line writes 
> data 
> to stderr (LOCM) and more-or-less immediately start working on that data as 
> soon as it arrives.  Similarly, "FANINMANY" will block when trying to read 
> stderr (FIN) just until the "LOCATE" on the second line writes data out to 
> stdout (FIN).

My point, exactly, though better said ;)

If someone wanted to, they could write a single program that would read
input/write output from/to two or more descriptors, and use it to create
a multi-path'ed I/O processing sequence, but writing it to prevent
blocking on one input/output, so it could continue working on the other
pair, would be a bit hairy.

The fifo node makes this sort of thing easy to do.

-- 
Bob McGowan


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Re: one website gives "address not found" from LAN

2010-02-05 Thread Richard Hector
On Fri, 2010-02-05 at 18:56 +, Camaleón wrote:

> It looks crystal clear to me: blame your ISP routing tables, any proxy or 
> service that it can be being used by them to filter Internet traffic or 
> just its DNS servers :-)

I'm just an observer of this conversation, but can you clarify your
reasoning?

I'm curious as to the reason the name can be both resolved and not
found, but I get the same result here, from two machines with completely
different routing and dns (I think).

Richard



-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Re: losing xmodmap settings during X startup

2010-02-05 Thread Joey Morris
Klistvud  wrote on Fri, Feb 05, 2010 at 12:49:47PM 
+0100:
> On one of my Lenny installs, I had a somewhat similar (albeit by no
> means identical) problem that turned out to be due to some missing
> lines in my xorg.conf. The lines I had to add to xorg.conf in order
> to make things work as expected were:
> 
> 
> Option "XkbRules" "xorg"
> Option "XkbLayout" "si"
> 
> 
> While the above lines probably won't help you with your problem,
> maybe it's worth checking whether xorg.conf in general is at fault?

Thanks for the suggestion. I actually removed the entire keyboard
InputSection from my xorg.conf a while ago, well before I started
experiencing this problem, so I don't think the xorg.conf is the
problem.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Re: [OT] - Bash question: get output as a variable?

2010-02-05 Thread Boyd Stephen Smith Jr.
On Friday 05 February 2010 16:33:12 Bob McGowan wrote:
> Boyd Stephen Smith Jr. wrote:
> > mkfifo "LOCM" &&
> > mkfifo "FIN" &&
> > (
> > "<" | "NFIND" | "LOCATE" 2> "LOCM" | "FANINANY" 2< "FIN"| ">" &
> > "LOCATE" < "LOCM" > "FIN" &
> > wait
> > )
> 
> which would disallow having the
> "parallel" processing implied by the above diagram.

My example runs in parallel.  It's virtually required when using fifos.  They 
aren't normal files -- only so much data can be written to their internal 
buffer before further writes block.

In this case the shell actually starts at least 6 processes.  One for each 
"utility".  Prior to doing the "exec" call in each process, it sets up the 
pipes and redirection.  It doesn't wait for the processes to finish (notice 
the '&' at the end of the pipelines) until I use the wait shell-builtin.

When the "LOCATE" utility on the second line starts trying to read from stdin 
(LOCM) it will block until the "LOCATE" utility on the second line writes data 
to stderr (LOCM) and more-or-less immediately start working on that data as 
soon as it arrives.  Similarly, "FANINMANY" will block when trying to read 
stderr (FIN) just until the "LOCATE" on the second line writes data out to 
stdout (FIN).
-- 
Boyd Stephen Smith Jr.   ,= ,-_-. =.
b...@iguanasuicide.net  ((_/)o o(\_))
ICQ: 514984 YM/AIM: DaTwinkDaddy `-'(. .)`-'
http://iguanasuicide.net/\_/


signature.asc
Description: This is a digitally signed message part.


Re: auto-mounting disks that might not be present (e.g. usb drives)

2010-02-05 Thread Richard Hector
On Sat, 2010-02-06 at 07:39 +1030, Arthur Marsh wrote:

> Last question is, what guarantee is there that the device file will have 
> been generated (assuming that the USB drive is present) before the 
> @reboot cron event is run?

The standard mount script is run in runlevel S, which is entered before
the numbered runlevels which is where cron is started. So I'm guessing
if the device is there in time to be mounted from fstab, it will be
there before cron runs.

Richard



-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Re: [OT] - Bash question: get output as a variable?

2010-02-05 Thread Bob McGowan
Boyd Stephen Smith Jr. wrote:
> On Friday 05 February 2010 14:47:21 Stephen Powell wrote:
>> On Fri, 5 Feb 2010 12:42:47 -0500 (EST), Bob McGowan wrote:
>> Let me give you a
>> simple example of a CMS pipeline for illustrative purposes,
>> so that you will get some idea of what I'm talking about.
>>
> 
> [snip: Long, but very useful description.]
> 
>> This pipeline can be illustrated graphically as follows:
>>
>>   +---+   +---+   ++   +--+   +---+
>> |-| < |-->| NFIND |-->| LOCATE |-->| FANINANY |-->| > |-|
>>   +---+   +---+   ++ 1   1 +--+   +---+
>>   | 2| 2
>>   V  A
>>   |++|
>>LOCM:-->| LOCATE |-->-FIN:
>>++
> 
> mkfifo "LOCM" &&
> mkfifo "FIN" &&
> (
>   "<" | "NFIND" | "LOCATE" 2> "LOCM" | "FANINANY" 2< "FIN"| ">" &
>   "LOCATE" < "LOCM" > "FIN" &
>   wait
> )
> 
> People with more shell magic than me might be able to simplify that to not 
> use 
> fifos, but I figured they were fair game since you get stream labels.  
> (That's 
> basically all a fifo is.)

I believe the use of fifo's in this context is required.  Unless you're
willing to write the 'LOCATE' and 'FANINANY' tools first, to deal with
inputs on descriptors other than 0, 1 and 2.

Not something I'd care to do, personally. ;)

You might be able to do this using 'exec' to open and redirect the I/O
streams at the shell level, but the nature of the '|' in UNIX/Linux is
to read stdin and write stdout, so everything would need to ultimately
go through those two descriptors, which would disallow having the
"parallel" processing implied by the above diagram.

> 
> Technically speaking, that's all one command, per the Single UNIX 
> Specifation.  
> It matches the shell grammar start symbol "complete_command" documented 
> .
> 
> So, basically, we have different basic building blocks (I don't know a grep 
> variant that acts like LOCATE, for example), but the larger structure is very 
> similar.
> 
> Most UNIX/Linux utilities for the command line assume all input on fd 0, all 
> normal output on fd 1, and end-user notifications written to fd 2.  However, 
> there's nothing actively preventing binaries from reading from fd 2, writing 
> to fd 0, or expecting i/o on fds 3 through 9.  (IIRC, anything greater than 9 
> is reserved when using the shell.)

-- 
Bob McGowan


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Re: octave-forge in debian

2010-02-05 Thread Jordi Gutiérrez Hermoso
On 5 February 2010 12:31, lc  wrote:
> I want to install the package octave-specfun in debian unstable,

This isn't a question particular to Octave, but it's about Debian
packaging. Please direct questions to Debian mailing lists or support
channels.

At any rate, I'm CC debian-user@lists.debian.org, and please let's
move the discussion over there. When you reply to this email, please
remove help-oct...@octave.org from the CC.

> but it says
> octave-specfun:
> Depends: libhdf5-serial-1.8.3 but it is not going to be installed or
>libhdf5-1.8.3
>
> because the newly upgraded octave3.2.4-1 depends and installed
> libhdf5-1.8.4

I don't see how this could be happening. The current octave in sid
also depends on  libhdf5-1.8.3

Where are you getting a 3.2.4-1 Octave package?


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Re: one website gives "address not found" from LAN

2010-02-05 Thread Adam Hardy

Lisi on 05/02/10 21:54, wrote:

On Friday 05 February 2010 20:40:01 Adam Hardy wrote:
It's a British-audience website and my ISP is British Telecom,  so it's 

unlikely to be something like ISP routing

tables


s/likely/unlikely???  Or have you contact with a second firm called BT that I 
don't know. ;-)


Really? this is the first time in 10 years I've experienced this and I've never 
heard of anyone experiencing it either.


I don't think BT are that great, and I am prone to jumping to conclusions, but 
in this case I didn't because I really thought /unlikely/  - unless it is a new 
phenomenon)


And with just one website? bizarre... but then it might be perfectly logical if 
I knew more about DNS.



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org




Re: one website gives "address not found" from LAN

2010-02-05 Thread Lisi
On Friday 05 February 2010 20:40:01 Adam Hardy wrote:
> It's a British-audience website and my ISP is British Telecom,  so it's 
unlikely to be something like ISP routing
> tables

s/likely/unlikely???  Or have you contact with a second firm called BT that I 
don't know. ;-)

Lisi


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Re: Nvidia issues SOLVED by disabling gdm

2010-02-05 Thread Patrick Wiseman
On Fri, Feb 5, 2010 at 1:44 PM, Paul Cartwright  wrote:
> On Fri February 5 2010, Patrick Wiseman wrote:
>> After much head bashing, I decided to try starting X using 'startx',
>> bypassing gdm.  My nvidia card is now working splendidly with the
>> 195.36.03 beta driver, which I installed using the nvidia installer
>> (as that seems to be the easiest way to ensure I have 32-bit
>> compatible OpenGL libraries, which Google Earth requires).  Maybe I
>> should file a bug against gdm for apparent (although not invariable)
>> incompatibility with nvidia drivers?
>
> did you try a different WM, like XFCE, or KDE? or maybe just for grins install
> KDM :)
> try logging into a different session at bootup, NOT gnome..

It isn't the WM that's the problem - I'm still using GNOME.  I might
try xdm, though.

Patrick


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Re: [OT] - Bash question: get output as a variable?

2010-02-05 Thread Boyd Stephen Smith Jr.
On Friday 05 February 2010 14:47:21 Stephen Powell wrote:
> On Fri, 5 Feb 2010 12:42:47 -0500 (EST), Bob McGowan wrote:
> Let me give you a
> simple example of a CMS pipeline for illustrative purposes,
> so that you will get some idea of what I'm talking about.
> 

[snip: Long, but very useful description.]

> This pipeline can be illustrated graphically as follows:
> 
>   +---+   +---+   ++   +--+   +---+
> |-| < |-->| NFIND |-->| LOCATE |-->| FANINANY |-->| > |-|
>   +---+   +---+   ++ 1   1 +--+   +---+
>   | 2| 2
>   V  A
>   |++|
>LOCM:-->| LOCATE |-->-FIN:
>++

mkfifo "LOCM" &&
mkfifo "FIN" &&
(
"<" | "NFIND" | "LOCATE" 2> "LOCM" | "FANINANY" 2< "FIN"| ">" &
"LOCATE" < "LOCM" > "FIN" &
wait
)

People with more shell magic than me might be able to simplify that to not use 
fifos, but I figured they were fair game since you get stream labels.  (That's 
basically all a fifo is.)

Technically speaking, that's all one command, per the Single UNIX Specifation.  
It matches the shell grammar start symbol "complete_command" documented 
.

So, basically, we have different basic building blocks (I don't know a grep 
variant that acts like LOCATE, for example), but the larger structure is very 
similar.

Most UNIX/Linux utilities for the command line assume all input on fd 0, all 
normal output on fd 1, and end-user notifications written to fd 2.  However, 
there's nothing actively preventing binaries from reading from fd 2, writing 
to fd 0, or expecting i/o on fds 3 through 9.  (IIRC, anything greater than 9 
is reserved when using the shell.)
-- 
Boyd Stephen Smith Jr.   ,= ,-_-. =.
b...@iguanasuicide.net  ((_/)o o(\_))
ICQ: 514984 YM/AIM: DaTwinkDaddy `-'(. .)`-'
http://iguanasuicide.net/\_/


signature.asc
Description: This is a digitally signed message part.


Re: Mailers and In-reply-to; was Re(4): Postscript: Grub2 in current Squeeze

2010-02-05 Thread Stephen Powell
On Fri, 5 Feb 2010 12:58:05 -0500 (EST), peasth...@shaw.ca wrote:
> When a message was created by clicking the Reply button 
> in that mailer, a correct In-reply-to parameter was included.  
> No complaint.
> 
> The problematic case is where a message in the archive is 
> read with the browser and then a reply is created by a 
> click on the Compose button in the Web based mailer.  
> In that case I can see the Message-id being replied to 
> but the mailer offers no way to insert it for the In-reply-to 
> parameter.  An example is this message.
> "http://lists.debian.org/debian-user/2010/02/msg00283.html";
> So for most of my messages, In-reply-to was correct.
> At least one was faulty.

I can attest to that.  I also use a webmail client provided
by my mail service provider that does not allow the user
to manually set the "In-Reply-To" field.  The webmail client
generates one if you click on the Reply button within the
mailer itself.  But you have to receive the e-mail to reply
to it.  Here's how I do it.

(1) I subscribe to the list.  That way, I get *all* the
e-mails.

(2) An incoming e-mail from the listserv shows the "From"
field as the original sender's e-mail address, not the
listserv's e-mail address.  I'm not sure why, but it does.
The "To" field shows the list it was sent to, usually
debian-u...@lists.debian.org.  I select the "To" field,
debian-user@lists.debian.org, with the mouse and click
Edit -> Copy in the browser action bar.  I then click
on the "Reply" field.  I am now in another window in
which I can compose a reply.  The mailer, behind the scenes,
has set the "In-Reply-To" field based on the incoming message,
and the "To" field is pre-filled in with the sender's e-mail
address, which is not the e-mail address I want to reply to.
I then highlight the "To" field with the mouse and click on
Edit -> Paste in the browser action bar.  The "To" field now
contains the list address.  It's kind-of kludgy, but it works.

In Peter's case, his primary system was down and he was 
using a back-up e-mail address to post.  This e-mail address
was not subscribed to the list.  He couldn't "Reply" to
an e-mail he did not receive, he could only compose a new
one.  And the web-based e-mail client didn't give him a
mechanism to manually set the "In-Reply-To" header.

In a case like that, Peter, the best you can do is to make
your subject line match *exactly*, character by character,
with the mail you are "replying" to.  It will generally show
up in the archives next to the main thread under the title
"Possible follow-ups".  But it will be disconnected from the
main thread.  There's really nothing you can do about that.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Re: auto-mounting disks that might not be present (e.g. usb drives)

2010-02-05 Thread Arthur Marsh

Dave Thayer wrote, on 05/02/10 16:01:

On Wed, Feb 03, 2010 at 11:01:00PM +1030, Arthur Marsh wrote:

In my case I have:

UUID=4823-93A9  /mnt/usb8gigvfat
defaults,users,uid=65534,gid=65534,umask=000,shortname=win95
0 2

(all on one line)

If I change that trailing "2" to a zero, no fsck should be performed.

I would like to have automatic mounting with fsck if the drive is
present when the machine is booted, and automatic mounting without
fsck if the drive is plugged in after the machine is booted.

Is this possible with any of the standard Debian tools and config
files, or will it require yet-another-script?



How about if you leave your fstab set up for no automount and no fsck,


Like:

UUID=4823-93A9 /mnt/usb8gig vfat 
defaults,users,uid=65534,gid=65534,umask=000,flush,shortname=win95,noauto 
  0   0


(all on the one line)


and then use a @reboot cronjob to fsck and mount the device if the
device node is present. For instance, in /etc/crontab you could try:

@reboot root test -L /dev/disk/by-uuid/4823-93A9 && fsck.vfat -a
/dev/disk/by-uuid/4823-93A9 && mount /mnt/usb8gig

(all on one line, with terminating newline)


OK, man 5 crontab shows that @reboot can be used instead of the first 5 
fields of /etc/crontab


Last question is, what guarantee is there that the device file will have 
been generated (assuming that the USB drive is present) before the 
@reboot cron event is run?


incron might be able to help, but I haven't yet fully understood how to 
set up incron.


Thanks for your help!

Arthur.


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org




Re: one website gives "address not found" from LAN

2010-02-05 Thread Camaleón
On Fri, 05 Feb 2010 20:40:01 +, Adam Hardy wrote:

> Camaleón on 05/02/10 18:56, wrote:

>> It looks crystal clear to me: blame your ISP routing tables, any proxy
>> or service that it can be being used by them to filter Internet traffic
>> or just its DNS servers :-)
> 
> It's a British-audience website and my ISP is British Telecom, plus it's
> an intermittent problem, so it's unlikely to be something like ISP
> routing tables, which shouldn't change on an hour by hour basis.

What the tests you have performed are telling you is that your ISP *is* 
the problem, whatever the problem is :-)
 
> I guess it's just not a debian problem at all. Thought it might have
> been something in the way I set up my gateway server.

Debian? I don't think so, but you can always discard that hypothesis by 
loading any linux LiveCD available out there, just for testing purposes.

> OK, I'll see if I can figure out a way of automatically inserting the
> nameserver 4.2.2.1 into my resolv.conf via the dhcp config.

Can you "browse" that website by using another DNS server? :-?

If yes, the problem is even more clear: faulty dns servers from your ISP.
 
> Thanks anyway, and Florian thanks for the tip re: 4.2.2.1

Greetings,

-- 
Camaleón


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Re: [OT] - Bash question: get output as a variable?

2010-02-05 Thread Stephen Powell
On Fri, 5 Feb 2010 12:42:47 -0500 (EST), Bob McGowan wrote:
> Stephen Powell wrote:
>> This is off topic from the OP's question, but one of the things that I
>> miss in the Linux environment that I used to use a lot in the CMS
>> environment is CMS Pipelines.  The shell supports pipelines, but they
>> are *single-stream* pipelines.  CMS pipelines supports *multi-stream*
>> pipelines.  That one feature alone makes CMS Pipelines so much more
>> powerful than shell pipelines.  I wish the shell supported multi-stream
>> pipelines.
> 
> As I'm not familiar with CMS, I have no idea if the following matches or
> is completely off target ...
> 
> The default pipeline in shells always operates with stdout/stdin, which
> is a bit limiting.
>
> But, you can work around it, a bit, like this:
>
>  cat abc_does_not_exist 2>&1 | wc
>
> The 'cat' error message gets sent to wc.  The normal cat output is still
> to stdout, so it also would be processed by wc, when the file exists.
> 
> The shell also allows you to open your own descriptors to files, using:
>
>  exec 5>abc
>  date >&5
>  cat abc
>  Fri Feb  5 09:15:15 PST 2010
>
> Or, you can set the descriptor to point to another one:
>
>  exec 5>&1
>  date >&5
>  Fri Feb  5 09:15:15 PST 2010
>
> You can also create "named pipes" using 'mknod a_name p'.  For example:
>
>  mknod fifo1 p
>  mknod fifo2 p
>  tr '[A-Z]' '[a-z]' < fifo1 >fifo2 &
>  [1] 25269
>  echo ABCDEFG > fifo1
>  cat fifo2
>  abcdefg
>  [1]+  Donetr '[A-Z]' '[a-z]' fifo2
>
> Perhaps one or another of the above will do what you want?

These are all helpful tips and tricks, and I'll keep them
in mind.  I really won't know if I can do the kind of things
I want with these until I try, I suppose.  I don't have a
specific application in mind right now.  Let me give you a
simple example of a CMS pipeline for illustrative purposes,
so that you will get some idea of what I'm talking about.

This is a REXX EXEC (i.e. a script written in the REXX
interpretive language) designed to run on the CMS operating
system running in a virtual machine under z/VM:

--

'PIPE (ENDCHAR ?)',/* Declare pipeline endchar. */
   '  < USER DIRECT|', /* Read directory file.  */
   '  NFIND *|',   /* Discard comments. */
   'LOCM: LOCATE /MDISK/|',/* Select MDISK records  */
   'FIN:  FANINANY|',  /* Collect MDISKs and LINKs. */
   '  > OUTPUT FILE A',/* Write them to a file. */
   '?',/* End of stream.*/
   'LOCM: |',  /* Non-MDISK cards to here   */
   '  LOCATE /LINK/|', /* Select LINK cards.*/
   'FIN:'  /* Send them to faninany.*/
   /* End of stream and pipe*/
 
--

This is all one command, as viewed by the REXX interpreter.
The stuff between /* and */ are comments.  They are ignored
by the interpreter.  Note that all lines end in a comma,
which is the continuation character, except the last.  The
vertical bar, as with shell pipelines, is the stage separator.
The apostrophes serve as quote characters, just as in the shell.
PIPE is the name of the command to invoke.  The rest of the
stuff is just arguments to the PIPE command.  In other words,
the REXX interpreter itself has no concept of a pipeline.
It is just passing a string of characters to a CMS command
called PIPE.  It is the PIPE command that understands what
a pipeline is.  The question mark is defined as an
end-of-stream character.  It marks the end of a section of
pipe, if you will.

The pipe consists of a number of stages.  The stage numbers
and their names are as follows:

   1. <
   2. NFIND
   3. LOCATE
   4. FANINANY
   5. >
   6. LOCATE

Don't be confused by "<" and ">".  They are not redirection
operators.  There's no such thing as a redirection operator
in REXX or in CMS Pipelines.  "<" and ">" are the names of
stages, just like the others.  Stage 2 and stage 6 are two
different instances of the LOCATE stage.  They have separate
inputs and outputs.  LOCM and FIN are labels.  They are
names given to some of the stages so that they can be
referenced later.  You can tell they are labels because they
end with a colon.

Stage 1, "<", reads records (lines) from a file, the name
of which is USER DIRECT *.  (The asterisk, meaning "on the
first accessed disk you can find it on" is implied by default.)
Input stream 1 is unconnected
and not used, since it is the first stage.  Records from
the file are written to output stream 1.

Stage 2, NFIND, has its input stream 1 connected to output stream
1 of stage 1.  Records which do not begin with an asterisk
in column 1 are written to output stream 1.  Records which
do begin with an asterisk are written to output stream 2,
if it is connected.  Otherwise, they are discarded.
Since output stream 2 is not connected, they are discarded.

Stage 3, LOCATE, has its input stream 1 connected to output
stream 1 of s

Re: Bash question: get output as a variable?

2010-02-05 Thread Brian Ryans
Quoting Stephen Powell on 2010-02-04 18:06:58:
> but in the general case, it's hard to tell.  Since stdout and
> stderr both default to the terminal, and since the doc doesn't
> say, how else would you know other than by trial and error?

Trial and error is an effective way to figure it out. [1] Depending on a
few factors though, it may be more instructive long-term to read the
source. I've recently been putting that philosophy to use in various
things where the documentation's not quite clear. Both methods have
their merits.

[1] possibly redirect std{out,err} to separate temp files and view them?

-- 
 _  Brian Ryans 8B2A 54C4 E275 8CFD 8A7D 5D0B 0AD0 B014 C112 13D0 .
( ) ICQ UIN: 43190205 | Mail/MSN/Jabber: brianlry...@gmail.com   ..:
 X  ASCII Ribbon Campaign Against HTML mail and v-cards: asciiribbon.org
/ \ Any technology distinguishable from magic is insufficently advanced.


signature.asc
Description: Digital signature


Re: one website gives "address not found" from LAN

2010-02-05 Thread Adam Hardy

Camaleón on 05/02/10 18:56, wrote:

On Fri, 05 Feb 2010 18:42:09 +, Adam Hardy wrote:


Reposting with the issue recapped:

I cannot surf this particular public website from my LAN. Is it my DNS
or my what, I don't know.


(...)
 

The intermittent nature of the problem is puzzling me too. Can anyone
say what my course of action should be?


It looks crystal clear to me: blame your ISP routing tables, any proxy or 
service that it can be being used by them to filter Internet traffic or 
just its DNS servers :-)


It's a British-audience website and my ISP is British Telecom, plus it's an 
intermittent problem, so it's unlikely to be something like ISP routing tables, 
which shouldn't change on an hour by hour basis.


I guess it's just not a debian problem at all. Thought it might have been 
something in the way I set up my gateway server.


OK, I'll see if I can figure out a way of automatically inserting the nameserver 
4.2.2.1 into my resolv.conf via the dhcp config.


Thanks anyway, and Florian thanks for the tip re: 4.2.2.1

Regards
Adam


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org




Re: one website gives "address not found" from LAN

2010-02-05 Thread Camaleón
2010/2/5 Joe:

(you forgot replying to the list)

> Camaleón wrote:

>> There is not much more you can do at your side, unless you contact your
>> ISP provider and explain them this issue. They are failing at some 
point.
>>
>
> EDNS? It has caused a lot of this kind of thing with Windows, where the
> answer is to disable it. Possibly your ISP's DNS server is trying it, 
and
> not all of the Internet infrastructure can deal with it yet.

Maybe, who knows... but I think EDNS will interfere with many other 
sites, not just one :-?

OTOH, what the OP is experiencing I also have suffered from time to time. 
Just changing the gateway to go out with another router (or switching 
back to a dial-up modem :-P) solves the issue. It uses to be a temporaly 
error.

> http://en.wikipedia.org/wiki/Extension_mechanisms_for_DNS
> https://lists.isc.org/pipermail/bind-users/2009-January/074921.html

Greetings,

-- 
Camaleón



-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Debian Lenny crashes on every shutdown.

2010-02-05 Thread Charles Oestreich
Has anyone seen this problem? Or is this the wrong mailing list for this type 
of problem?
Thanks for all your help.
I am running Debian - Lenny Version 2.6.26-21 as a guest OS on VirtualBox. It 
crashes every shutdown, and I am hoping someone has already seen this error, 
and could help me fix it. 

Feb  3 14:42:24 debian shutdown[4859]: shutting down for system halt
Feb  3 09:53:00 debian kernel: imklog 3.18.6, log source = /proc/kmsg started.
Feb  3 09:53:00 debian kernel: [    0.00] Initializing cgroup subsys cpuset
Feb  3 09:53:00 debian kernel: [    0.00] Initializing cgroup subsys cpu
Feb  3 09:53:00 debian kernel: [    0.00] Linux version 2.6.26-2-686 
(Debian 2.6.26-21) (da...@debian.org) (gcc version 4.1.3 20080704 (prerelease) 
(Debian 4.1.2-25)) #1 SMP Sat Dec 26 09:01:51 UTC 2009
Feb  3 09:53:00 debian kernel: [    0.00] BIOS-provided
 physical RAM map:
Feb  3 09:53:00 debian kernel: [    0.00]  BIOS-e820:  - 
0009fc00 (usable)
Feb  3 09:53:00 debian kernel: [    0.00]  BIOS-e820: 0009fc00 - 
000a (reserved)
Feb  3 09:53:00 debian kernel: [    0.00]  BIOS-e820: 000f - 
0010 (reserved)
Feb  3 09:53:00 debian kernel: [    0.00]  BIOS-e820: 0010 - 
1fff (usable)
Feb  3 09:53:00 debian kernel: [    0.00]  BIOS-e820: 1fff - 
2000 (ACPI data)
Feb  3 09:53:00 debian kernel: [    0.00]  BIOS-e820: fffc - 
0001 (reserved)
Feb  3 09:53:00 debian kernel: [    0.00] WARNING: strange, CPU MTRRs all 
blank?
Feb  3 09:53:00 debian kernel:
 [    0.00] [ cut here ]
Feb  3 09:53:00 debian kernel: [    0.00] WARNING: at 
arch/x86/kernel/cpu/mtrr/main.c:696 mtrr_trim_uncached_memory+0x178/0x183()
Feb  3 09:53:00 debian kernel: [    0.00] Modules linked in:
Feb  3 09:53:00 debian kernel: [    0.00] Pid: 0, comm: swapper Not tainted 
2.6.26-2-686 #1
Feb  3 09:53:00 debian kernel: [    0.00]  [] 
warn_on_slowpath+0x40/0x66
Feb  3 09:53:00 debian kernel: [    0.00]  [] 
_spin_lock_irqsave+0x16/0x2f
Feb  3 09:53:00 debian kernel: [    0.00]  [] 
_spin_unlock_irqrestore+0xd/0x10
Feb  3 09:53:00 debian kernel: [    0.00]  [] 
release_console_sem+0x173/0x18c
Feb  3 09:53:00 debian kernel:
 [    0.00]  [] vprintk+0x2d2/0x2de
Feb  3 09:53:00 debian kernel: [    0.00]  [] mtrr_wrmsr+0xf/0x2e
Feb  3 09:53:00 debian kernel: [    0.00]  [] printk+0x14/0x18
Feb  3 09:53:00 debian kernel: [    0.00]  [] 
mtrr_trim_uncached_memory+0x178/0x183
Feb  3 09:53:00 debian kernel: [    0.00]  [] 
setup_arch+0x254/0x6bb
Feb  3 09:53:00 debian kernel: [    0.00]  [] printk+0x14/0x18
Feb  3 09:53:00 debian kernel: [    0.00]  [] 
start_kernel+0x62/0x2d7
Feb  3 09:53:00 debian kernel: [    0.00]  ===
Feb  3 09:53:00 debian kernel: [    0.00] ---[ end trace
 4eaa2a86a8e2da22 ]---



  


  

Re: Bash question: get output as a variable?

2010-02-05 Thread Boyd Stephen Smith Jr.
On Friday 05 February 2010 10:01:45 Paul E Condon wrote:
> Traditional Unix and traditional C both made provision for stdin,
> stdout, and stderr. When Stroustrup, et al., started working on C++
> and its earlier predicessors, someone recognized the need for a fourth
> stdXXX, namely stdlog.

If you system provides stdlog (or a C++ equivalent), it is likely still file 
descriptor 2, but opened in line-buffered mode.  stderr (and cerr) is supposed 
to be opened in non-buffered mode.
-- 
Boyd Stephen Smith Jr.   ,= ,-_-. =.
b...@iguanasuicide.net  ((_/)o o(\_))
ICQ: 514984 YM/AIM: DaTwinkDaddy `-'(. .)`-'
http://iguanasuicide.net/\_/


signature.asc
Description: This is a digitally signed message part.


Re: Cron does not run.

2010-02-05 Thread Boyd Stephen Smith Jr.
On Thursday 04 February 2010 23:47:59 Sthu Deus wrote:
> Thank You for Your time and answer, Boyd:
> >On many Debian systems cron jobs are run at GMT time.
> 
> What is Your local time?

America/Chicago

> How do You get reports of works run?

The logcheck cron job explicitly mails the logcheck user.  I have an alias 
"logcheck: bss".

The apt cron job only generates output when there are issues.  It runs as 
root.  I have an alias "root: bss".

My daily job to check for upgradable packages runs as my user.  It only 
generates output when there are packages that could be upgraded.

In my home directory on each server, I have a .forward file with the contents 
"b...@iguanasuicide.net".

Each server knows how to send mail via (E)SMTP, although most either do not 
listen on any interface besides lo OR that port firewalled (most ports are 
firewalled).

So, I the results of all the cron jobs I care about delivered to my primary 
private email address.  Once there, some get filtered by my sieve scripts.  
Logcheck has its own folder, for example.
-- 
Boyd Stephen Smith Jr.   ,= ,-_-. =.
b...@iguanasuicide.net  ((_/)o o(\_))
ICQ: 514984 YM/AIM: DaTwinkDaddy `-'(. .)`-'
http://iguanasuicide.net/\_/


signature.asc
Description: This is a digitally signed message part.


Problema con desintalacion de Postgre 8.4 URGENTE

2010-02-05 Thread john vera
Hola amigos como estan!
tengo un problema en mi sistema Debian Lenny
tengo installado el .bin de postgre 8.4
este me esta dando muchos problemas y quiero volver a la
version 8.3 del mismo!

mi problema espesifico es como desintalar esa app 8.4

eh detenido los procesos borrando los enlaces simbolicos de los
runlevels 2 y 5

Alguna buena solucion? Gracias!!!

URGENTE


-- 
John M. A. Vera F.
VaSLibre Valencia-Venezuela
Linux Counter # 467192
y la verdad OS hara Libres!!


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Re: one website gives "address not found" from LAN

2010-02-05 Thread Camaleón
On Fri, 05 Feb 2010 18:42:09 +, Adam Hardy wrote:

> Reposting with the issue recapped:
> 
> I cannot surf this particular public website from my LAN. Is it my DNS
> or my what, I don't know.

(...)
 
> The intermittent nature of the problem is puzzling me too. Can anyone
> say what my course of action should be?

It looks crystal clear to me: blame your ISP routing tables, any proxy or 
service that it can be being used by them to filter Internet traffic or 
just its DNS servers :-)

There is not much more you can do at your side, unless you contact your 
ISP provider and explain them this issue. They are failing at some point.

Greetings,

-- 
Camaleón


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Re: one website gives "address not found" from LAN

2010-02-05 Thread Adam Hardy

Reposting with the issue recapped:

I cannot surf this particular public website from my LAN. Is it my DNS or my 
what, I don't know.


75% of the time with my normal setup I get "address not found" when surfing it.

This is some diagnostics I was doing:

a...@isengard:~$ host www.trade2win.com
Host www.trade2win.com not found: 3(NXDOMAIN)

And then with another nameserver:

a...@isengard:~$ host www.trade2win.com 4.2.2.1
Using domain server:
Name: 4.2.2.1
Address: 4.2.2.1#53
Aliases:

www.trade2win.com is an alias for panna-229.trade2win.com.
panna-229.trade2win.com has address 208.43.120.229
Host panna-229.trade2win.com not found: 3(NXDOMAIN)
Host panna-229.trade2win.com not found: 3(NXDOMAIN)


I can surf the site from a proxy website like proxify.co.uk

The intermittent nature of the problem is puzzling me too. Can anyone say what 
my course of action should be?



Thanks
Adam


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org




Re: Bash question: get output as a variable?

2010-02-05 Thread Chris Jackson

Dotan Cohen wrote:


I'm scripting a backup solution, the line that does the business looks
like this:

tar -zcvf - *  --exclude-from $EXCLUDES  | openssl des3 -salt -k $1 |
dd of=$(hostname)-$(date +%Y%m%d).tbz

Because of the "v" flag tar writes to stdout the name of each file
copied. How can I get that output redirected to a variable, to use
later in the script?

Thanks!




Use $() like you do with the date command. You have to redirect stderr 
back to stdout, which means running it in a subshell:



FILES=$( ( tar -zcvf - *  --exclude-from $EXCLUDES  | openssl des3 -salt 
-k $1 | dd of=$(hostname)-$(date +%Y%m%d).tbz ) 2>&1 )


It may cause unexpected results if there're spaces in the filenames though.

--
Chris Jackson
Shadowcat Systems Ltd.


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org




Re: [OT] - Bash question: get output as a variable?

2010-02-05 Thread Stephen Powell
On Fri, 5 Feb 2010 11:39:26 -0500 (EST), John Hasler wrote:
> Stephen Powell writes:
>> I wish the shell supported multi-stream pipelines.
>
> I think you could fake it with tee and a fifo.

Well, I know about tee; but, although I've heard the term fifo,
I know nothing about it in a Linux/Unix/shell context.  I'll look
into it.  Thanks.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Nvidia issues SOLVED by disabling gdm

2010-02-05 Thread Patrick Wiseman
Hello, all:

After much head bashing, I decided to try starting X using 'startx',
bypassing gdm.  My nvidia card is now working splendidly with the
195.36.03 beta driver, which I installed using the nvidia installer
(as that seems to be the easiest way to ensure I have 32-bit
compatible OpenGL libraries, which Google Earth requires).  Maybe I
should file a bug against gdm for apparent (although not invariable)
incompatibility with nvidia drivers?

Patrick


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Re: UDF filesystem in removable harddisk crashed

2010-02-05 Thread Stephen Powell
On Fri, 5 Feb 2010 11:15:14 -0500 (EST), resat...@yeah.net wrote:
> The command of making
> filesystem at that time was:
>
>   # mkudffs  -r 0x0150 --media-type=hd --utf8  /dev/sdb
>
>  Note: I made UDF filesystem in the whole disk, not partition.
>
>
>  It worked normally, read and wrote file normally. Today, when I mounted
> it, and copied some files to it, found that it became very slowly. So I
> unmounted it and tried to mount it again. But it could not be mounted
> again!!! The filesystem was crashed!
> 
>   I have searched Google, found much software to recover data for UDF
> filesystem, but they all work only for UDF CD/DVD, not for UDF harddisk!
> 
>   Oh, many valuable files are saved in the disk. Can anybody tell me some
> way to save data in the disk? Thank you very very very much.

I'll be the first person to admit that I know nothing about the UDF
filesystem.  To me, UDF means "United Dairy Farmers"  :-)
But in my experience, NEVER build a file system on an entire disk.
Always create a partition on the disk, then build a file system on
the partition.  I suspect that that is your problem.  Unfortunately,
that will not be of much help to you at this point.  But it may prevent
you from making that mistake in the future.

Patient:   Doctor!  Doctor!  I've broken my arm in three places!
Doctor:Well, stay out of those places!


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Mailers and In-reply-to; was Re(4): Postscript: Grub2 in current Squeeze

2010-02-05 Thread peasthope
Tixy,

> ... both the message I just quoted and the one I originally replied to
> have an "In-reply-to" header ...

In 
http://lists.debian.org/debian-user/2010/02/author.html
or 
http://lists.debian.org/debian-user/2010/02/author2.html
or 
http://lists.debian.org/debian-user/2010/02/author3.html
depending on when the reader opens the page,
are messages from peasthope and messages from 
Peter Easthope.  The messages from Peter Easthope 
were sent by the Shaw Web based mailer.

When a message was created by clicking the Reply button 
in that mailer, a correct In-reply-to parameter was included.  
No complaint.

The problematic case is where a message in the archive is 
read with the browser and then a reply is created by a 
click on the Compose button in the Web based mailer.  
In that case I can see the Message-id being replied to 
but the mailer offers no way to insert it for the In-reply-to 
parameter.  An example is this message.
"http://lists.debian.org/debian-user/2010/02/msg00283.html";
So for most of my messages, In-reply-to was correct.
At least one was faulty.

For comparison, if a reply is created with the NO mailer 
any of the SMTP parameters can be inserted manually.  
An old message can be read in the archive and a correctly 
threaded reply can be created.

I used the mailing list for at least a year before understanding
how this works.

Regards,  ... Peter E.


-- 
Google "pathology workshop"


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Re: Bash question: get output as a variable?

2010-02-05 Thread Bob McGowan
Dotan Cohen wrote:
> I'm scripting a backup solution, the line that does the business looks
> like this:
> 
> tar -zcvf - *  --exclude-from $EXCLUDES  | openssl des3 -salt -k $1 |
> dd of=$(hostname)-$(date +%Y%m%d).tbz
> 
> Because of the "v" flag tar writes to stdout the name of each file
> copied. How can I get that output redirected to a variable, to use
> later in the script?
> 
> Thanks!
> 

I forgot to ask, in the last post:  Why are you using the 'dd' command?

I would think you could do:

  tar ... | openssl ... > $(hostname)-$(date +%Y%m%d).tbz

-- 
Bob McGowan
Symantec
US Internationalization


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Re: Bash question: get output as a variable?

2010-02-05 Thread Bob McGowan
Dotan Cohen wrote:
> I'm scripting a backup solution, the line that does the business looks
> like this:
> 
> tar -zcvf - *  --exclude-from $EXCLUDES  | openssl des3 -salt -k $1 |
> dd of=$(hostname)-$(date +%Y%m%d).tbz
> 
> Because of the "v" flag tar writes to stdout the name of each file
> copied. How can I get that output redirected to a variable, to use
> later in the script?
> 
> Thanks!
> 

I would avoid trying to store the file listing in any type of variable,
since you have no idea how big the list will be.

And, as others have noted, in the above case the file names list is sent
to stderr, so it doesn't mess up the stdout you requested for the
archive data.

I'd recommend using a "named pipe", or FIFO, like this:

  mknod filenames p
  tar -zcvf - *  --exclude-from $EXCLUDES 2>filenames  |
  openssl ... | dd ... &

NOTE:  the '2>filenames' and the ampersand to put the command into the
background.

Then, later in the script, you would do something like this:

while read filename
do
  # other work
done < filenames

I've not done the above with anything large enough to know, but the way
a FIFO works, the read loop will block, waiting for input, if it
exhausts the FIFO content.  The FIFO will generate a zero length read
after the last line from tar is captured which will terminate the loop.

-- 
Bob McGowan


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Re: [OT] - Bash question: get output as a variable?

2010-02-05 Thread Bob McGowan
Stephen Powell wrote:
> On Fri, 5 Feb 2010 10:44:28 -0500 (EST), bruno wrote:
>> Ken Teague wrote:
>>> On Fri, Feb 5, 2010 at 12:39 AM, bruno  wrote:
>>>   
 Why not simply use the  t option for content listing :

 tar tvf  * --exclude-from $EXCLUDES
 
>>> He's already creating the archive with -v.  Why process the archive a
>>> 2nd time just to get a listing when it comes from stdout the 1st time?

---"because" removed---

> 
> This is off topic from the OP's question, but one of the things that I
> miss in the Linux environment that I used to use a lot in the CMS
> environment is CMS Pipelines.  The shell supports pipelines, but they
> are *single-stream* pipelines.  CMS pipelines supports *multi-stream*
> pipelines.  That one feature alone makes CMS Pipelines so much more
> powerful than shell pipelines.  I wish the shell supported multi-stream
> pipelines.
> 
> 

As I'm not familiar with CMS, I have no idea if the following matches or
is completely off target ...

The default pipeline in shells always operates with stdout/stdin, which
is a bit limiting.

But, you can work around it, a bit, like this:

  cat abc_does_not_exist 2>&1 | wc

The 'cat' error message gets sent to wc.  The normal cat output is still
to stdout, so it also would be processed by wc, when the file exists.

The shell also allows you to open your own descriptors to files, using:

  exec 5>abc
  date >&5
  cat abc
  Fri Feb  5 09:15:15 PST 2010

Or, you can set the descriptor to point to another one:

  exec 5>&1
  date >&5
  Fri Feb  5 09:15:15 PST 2010

You can also create "named pipes" using 'mknod a_name p'.  For example:

  mknod fifo1 p
  mknod fifo2 p
  tr '[A-Z]' '[a-z]' < fifo1 >fifo2 &
  [1] 25269
  echo ABCDEFG > fifo1
  cat fifo2
  abcdefg
  [1]+  Donetr '[A-Z]' '[a-z]' fifo2

Perhaps one or another of the above will do what you want?

-- 
Bob McGowan


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Upgrade freeradius etch to lenny.

2010-02-05 Thread Account for Debian group mail


Hello,

On one of our radius servers we upgraded from etch to lenny which means 
the freeradius server software was upgraded from version 1.1.3 to 2.0.4. 
This is a big upgrade for FreeRadius.


I've managed to get most of the freeradius server working properly except 
the accounting part. I see in the "radius.conf" file that the accounting 
is turned on and the accounting directory is still the same one used in 
the version 1 software. But still the accounting is not logging the 
information as it should, and I see no errors about it.


Anyone know what I have to do to get the accounting working?


Thanks,

Ken


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org




Re (4): Installing lilo in Squeeze after booting from the Lenny installer CD.

2010-02-05 Thread peasthope
Stephen,

> I think you might have been somewhat confused by my suggestions.
> I actually gave two completely different alternative recovery scenarios.

Yes.  I'd missed Alternative number 1 and followed 2 
approximately.  I used the ncurses interface whereas 
you refer to the CLUI.

> If you can't find an installer CD which uses the same kernel version that
> you are using,

The extant system has 2.6.30 and 2.6.32 in /boot.  The 
"daily built" Squeeze installer worked with no snags.

> With boot=/dev/hda1, lilo will install itself in the boot sector
> of the first partition on drive /dev/hda. 

Understood.  

> I assume that you changed it to say  boot=/dev/hda

Yes.

> Read the man page for lilo.conf carefully. 

OK, the installation default is "delay=0" but even 
with non-zero delay I couldn't get the Lilo prompt.
Finally I changed "install=bmp" to "install=menu" 
and booted single with no problem.

> Now, is it possible to create a third menu item, 
> ... put "single" in the append option ...

That's it!  Thanks.

The system is on its feet again.
Thanks,... Peter E.



-- 
Google "pathology workshop"


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Re: UDF filesystem in removable harddisk crashed

2010-02-05 Thread Pier Paolo
Il giorno sab, 06/02/2010 alle 00.15 +0800, User ha scritto:
> 
>   Hi, all kind friends. Help me! Sorry for my poor English.
> 
>   My OS is Debian Lenny for i386, and last month I bought a "Seagate
> FreeAgent Desk" 1TB removable harddisk. In order to can be used on both
> Linux and Windows, I chose UDF filesystem for it. The command of making
> filesystem at that time was:
> 
>   # mkudffs  -r 0x0150 --media-type=hd --utf8  /dev/sdb
> 
>   Note: I made UDF filesystem in the whole disk, not partition.
> 
Don't know about UDF
> 
>   It worked normally, read and wrote file normally. Today, when I mounted
> it, and copied some files to it, found that it became very slowly. So I
> unmounted it and tried to mount it again. But it could not be mounted
> again!!! The filesystem was crashed!
> 
>   I have searched Google, found much software to recover data for UDF
> filesystem, but they all work only for UDF CD/DVD, not for UDF harddisk!
> 
>   Oh, many valuable files are saved in the disk. Can anybody tell me some
> way to save data in the disk? Thank you very very very much.
> 
> 
Testdisk isn't working (from apt repository also, w/o photorec i think)?
neither directly from the /dev/sdisk neither from a dd image of it?

man dd; Linuxquestions.org has an exaustive post about dd. Google for
the testdisk/photorec site and wiki.

> 
> 


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Re: [OT] - Bash question: get output as a variable?

2010-02-05 Thread John Hasler
Stephen Powell writes:
> I wish the shell supported multi-stream pipelines.

I think you could fake it with tee and a fifo.
-- 
John Hasler


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Re: grub2 + serial redirect

2010-02-05 Thread Lev Lvovsky
Andrew,

On Feb 5, 2010, at 7:21 AM, Andrew Malcolmson wrote:

> On Thu, Feb 4, 2010 at 12:44 PM, Lev Lvovsky  wrote:
>> Hello,
> [snip.
>> 
>> This works fine once the kernel is booted (it redirects output to my serial 
>> port).  I am not able to see the boot menu with this new configuration 
>> however - it appears on the "video" portion of the screen, and I'm able to 
>> select a kernel that way, but the serial ouput gets nothing.  With Grub v.1 
>> on other machines with serial redirect, I've been able to get the menu.  Is 
>> there some option that I'm missing?
> 
> I was working on this a few weeks ago and AFAICK I needed the
> following in grub.cfg to serial the grub menu over serial:
> 
> terminal_input serial
> terminal_output serial

Thanks, I'll give this a shot tonight, if it works, I'm assuming that this is 
an upstream patch to the update-grub script?

-lev

--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



UDF filesystem in removable harddisk crashed

2010-02-05 Thread User


  Hi, all kind friends. Help me! Sorry for my poor English.

  My OS is Debian Lenny for i386, and last month I bought a "Seagate
FreeAgent Desk" 1TB removable harddisk. In order to can be used on both
Linux and Windows, I chose UDF filesystem for it. The command of making
filesystem at that time was:

# mkudffs  -r 0x0150 --media-type=hd --utf8  /dev/sdb

  Note: I made UDF filesystem in the whole disk, not partition.


  It worked normally, read and wrote file normally. Today, when I mounted
it, and copied some files to it, found that it became very slowly. So I
unmounted it and tried to mount it again. But it could not be mounted
again!!! The filesystem was crashed!

  I have searched Google, found much software to recover data for UDF
filesystem, but they all work only for UDF CD/DVD, not for UDF harddisk!

  Oh, many valuable files are saved in the disk. Can anybody tell me some
way to save data in the disk? Thank you very very very much.




-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



[OT] - Bash question: get output as a variable?

2010-02-05 Thread Stephen Powell
On Fri, 5 Feb 2010 10:44:28 -0500 (EST), bruno wrote:
> Ken Teague wrote:
>> On Fri, Feb 5, 2010 at 12:39 AM, bruno  wrote:
>>   
>>> Why not simply use the  t option for content listing :
>>>
>>> tar tvf  * --exclude-from $EXCLUDES
>>> 
>>
>> He's already creating the archive with -v.  Why process the archive a
>> 2nd time just to get a listing when it comes from stdout the 1st time?
>>
>>
>>   
> because it's a simplier way to get the list into a variable
> because the script gets much clearer
> because it is not safe to rely on stderr since it is supposed to display 
> errors, which it might do as well
> because he would get the list of the files that have really been 
> compressed, not just the processed ones
> because the overhead may not be worth the complication of trying to do 
> both things at the same time
> because he might as well never use the v option (it's not useful in my 
> proposition either, and it would even reduce the overhead)
>
> because it is another way to do it and nobody had proposed it before

This is off topic from the OP's question, but one of the things that I
miss in the Linux environment that I used to use a lot in the CMS
environment is CMS Pipelines.  The shell supports pipelines, but they
are *single-stream* pipelines.  CMS pipelines supports *multi-stream*
pipelines.  That one feature alone makes CMS Pipelines so much more
powerful than shell pipelines.  I wish the shell supported multi-stream
pipelines.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Re: [CentOS] Best way to backup virtual machines from Citrix XenServer.

2010-02-05 Thread Benjamin Donnachie
2010/2/5 Rafał Radecki :
> I have installed Citrix XenServer. It's Linux-based virtualization software.
> Could anyone propose a good way to make backups of virtual machines
> (Linux/Windows) in it?

Try the XenServer mailing lists or wiki?

http://wiki.xensource.com/xenwiki/
http://lists.xensource.com/

Ben


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Re: Bash question: get output as a variable?

2010-02-05 Thread Paul E Condon
On 20100205_135919, Alexey Salmin wrote:
> On Fri, Feb 5, 2010 at 1:20 PM, Javier Barroso  wrote:
> > On Fri, Feb 5, 2010 at 1:06 AM, Stephen Powell  wrote:
> >> On Thu, 4 Feb 2010 17:42:45 -0500 (EST), Javier Barroso wrote:
> >>> In this case output goes to stderr, so:
> >>>
> >>> tar -zcvf - * --exclude-from $EXCLUDES 2> /tmp/data$$ | openssl ...
> >>
> >> Is that something you just have to find out by trial and error?
> >> I checked the man page for tar, and there's nothing in there about
> >> the -v output being written to stderr. ?I'll take your word for it,
> >> but in the general case, it's hard to tell. ?Since stdout and
> >> stderr both default to the terminal, and since the doc doesn't
> >> say, how else would you know other than by trial and error?
> > If you are using stdout as tar output, including filenames there will
> > corrupt that output, so it is logical that in this case filenames goes
> > to stderr.
> >
> > Sorry my bad english, I hope you understand my opinion
> >
> 
> That's true: programs using stdout for data output certainly have to
> use stderr as a way to report any additional info.
> 
> Alexey

A comment towards 'how would I know':

Traditional Unix and traditional C both made provision for stdin,
stdout, and stderr. When Stroustrup, et al., started working on C++
and its earlier predicessors, someone recognized the need for a fourth
stdXXX, namely stdlog.  I think it was/is a good idea, but it has
never gained enough traction to justify all the changes that would be
required if it were introduced into the POSIX standard. Instead, the
community has kept the name stderr, but changed the usage to something
that might better be named stdmsg, indicating both errors and action
logging. Its the sort of historical development that doesn't get recorded
in any man page (or at least any man page that newbies know about).

HTH
-- 
Paul E Condon   
pecon...@mesanetworks.net


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Re: Bash question: get output as a variable?

2010-02-05 Thread bruno

Ken Teague wrote:

On Fri, Feb 5, 2010 at 12:39 AM, bruno  wrote:
  

Why not simply use the  t option for content listing :

tar tvf  * --exclude-from $EXCLUDES



He's already creating the archive with -v.  Why process the archive a
2nd time just to get a listing when it comes from stdout the 1st time?


  

because it's a simplier way to get the list into a variable
because the script gets much clearer
because it is not safe to rely on stderr since it is supposed to display 
errors, which it might do as well
because he would get the list of the files that have really been 
compressed, not just the processed ones
because the overhead may not be worth the complication of trying to do 
both things at the same time
because he might as well never use the v option (it's not useful in my 
proposition either, and it would even reduce the overhead)


because it is another way to do it and nobody had proposed it before


Bruno


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org




Re: grub2 + serial redirect

2010-02-05 Thread Andrew Malcolmson
On Thu, Feb 4, 2010 at 12:44 PM, Lev Lvovsky  wrote:
> Hello,
[snip.
>
> This works fine once the kernel is booted (it redirects output to my serial 
> port).  I am not able to see the boot menu with this new configuration 
> however - it appears on the "video" portion of the screen, and I'm able to 
> select a kernel that way, but the serial ouput gets nothing.  With Grub v.1 
> on other machines with serial redirect, I've been able to get the menu.  Is 
> there some option that I'm missing?

I was working on this a few weeks ago and AFAICK I needed the
following in grub.cfg to serial the grub menu over serial:

terminal_input serial
terminal_output serial

> Additionally, IIRC, the GRUB_CMDLINE_LINUX option above is conditional, 
> meaning that if I want video vs. serial redirection while booting, I need to 
> swap the two 'console' directives.  Given that there's only one way I can 
> specify the linux command line option, how would I go about doing this?

According to the following bug report (which is also where I saw an
example using the two above lines in grub.cfg), concurrent output is
coming:

http://old.nabble.com/-bug--28628--Concurrent-console-and-serial-access-td27186757.html


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Re: suspend on my asus eeepc

2010-02-05 Thread Florian Reitmeir

Hi,


On Fri, 05 Feb 2010, Daniel Dalton wrote:


On Wed, Feb 03, 2010 at 09:14:26AM +0100, Florian Reitmeir wrote:

Hi,

s2ram
s2disk


Package:
uswsusp


What package? I get command not found when running these as root. 


> and put your script in.. /etc/pm/sleep.d
this direcorty is generated by the package pm-utils in which you can
also find the docs how to write the correct script.


Ah yes, thanks, I'll go do that.




--
DI Florian Reitmeir / E-Mail: n...@multi24.com / Mobil: +43 650 2661660

net.multi24.com / WWW: http://net.multi24.com 
Josef-Schweinester-Str.1 
6412 St. Georgen / Austria



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org




Re: Bash question: get output as a variable?

2010-02-05 Thread Ken Teague
On Fri, Feb 5, 2010 at 12:39 AM, bruno  wrote:
> Why not simply use the  t option for content listing :
>
> tar tvf  * --exclude-from $EXCLUDES

He's already creating the archive with -v.  Why process the archive a
2nd time just to get a listing when it comes from stdout the 1st time?


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Re: Bash question: get output as a variable?

2010-02-05 Thread Stephen Powell
On Fri, 5 Feb 2010 02:20:48 -0500 (EST), Javier Barroso wrote:
> If you are using stdout as tar output, including filenames there will
> corrupt that output, so it is logical that in this case filenames goes
> to stderr.

That does make sense, now that I think about it.  I didn't look
closely enough.  I saw what I expected to see.  The extracted
files themselves "always" go to disk.  But they don't in this
case.  Thanks.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Re: Re (2): Installing lilo in Squeeze after booting from the Lenny installer CD.

2010-02-05 Thread Stephen Powell
On Thu, 4 Feb 2010 21:06:11 -0500 (EST), Stephen Powell wrote:
> For successful installation of future kernels, you should also check your
> /etc/kernel-img.conf file.  Here's what mine looks like
> 
> --
> 
> do_symlinks = yes
> relative_links = yes
> do_bootloader = yes
> do_bootfloppy = no
> do_initrd = yes
> link_in_boot = yes
> 
> --
> 
> Note particularly the "link_in_boot" option, which tells the kernel 
> installation script
> to maintain the symbolic links in /boot instead of in /.
> 
> After all these changes, re-run lilo.
> Then shutdown and reboot to test it.
> 
> Hope this helps.

One thing I forgot to mention is that the symlink method used by the 
kernel install scripts in conjunction with boot loaders that use them,
such as lilo (for the i386 architecture) and zipl (for the s390
architecture) only allows the two most recently installed kernels
to be bootable.  Let's say that you install a 2.6.33 kernel in the
future.  That means that "Linux" in your lilo boot menu will boot
the 2.6.33 kernel and "LinuxOLD" in your lilo boot menu will boot
the 2.6.32 kernel.  The 2.6.30 kernel, though still installed, is no
longer bootable.  If you want it to remain bootable, you will need
to set "do_symlinks=no" and "do_bootloader=no" in /etc/kernel-img.conf
and maintain your /etc/lilo.conf file and your symlinks by hand.
Then manually run lilo to update the boot menu.

Assuming that you are content with only being able to boot the
two most recently installed kernels, you should manually purge
old kernels as they roll off the boot menu, in order to save space.
For example, after installing the 2.6.33 kernel, you would issue

   aptitude purge linux-image-2.6.30-2-686

to deinstall the old kernel, since it is no longer bootable.

Of course, an upgrade to an existing kernel (same package name,
different version number) replaces the current kernel.  It does
not install a new kernel.  Therefore, you would not purge the
old kernel under these conditions.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



RE: [CentOS] Best way to backup virtual machines from Citrix XenServer.

2010-02-05 Thread Simon Billis
Rafał Radecki sent a missive on 2010-02-05:

> Hi All.
> 
> I have installed Citrix XenServer. It's Linux-based virtualization 
> software. Could anyone propose a good way to make backups of virtual 
> machines (Linux/Windows) in it?
> 
> With regards,
> R.
>

Do you have any shared storage that you're using which supports snapshots?
If you do, then a combination of coalescing the running VM's to disk and
taking a snap and also using traditional backup methods (application aware)
to disk/tape for archival and complete failure of the storage is a
reasonable thing to do.

S.





--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Best way to backup virtual machines from Citrix XenServer.

2010-02-05 Thread Rafał Radecki
Hi All.

I have installed Citrix XenServer. It's Linux-based virtualization software.
Could anyone propose a good way to make backups of virtual machines
(Linux/Windows) in it?

With regards,
R.


Re: Unable to download files with epiphany-browser in Squeeze

2010-02-05 Thread Stephen Powell
On Thu, 4 Feb 2010 00:27:56 -0500 (EST), bri...@aracnet.com wrote:
> I can confirm this, doesn't seem to work for me either.  I'm running
> unstable.
> 
> save as doesn't work.
>
> however shift-click does download the file to the preferences-set
> download directory.

I'm running testing, and your work-around to download doesn't work
for me.  For pdf files, I get

   Unable to open document.
   Error opening file.  No such file or directory.

For xls files I get

   /tmp/WKPxx does not exist

where xx is text that changes with each download attempt.

I've subscribed to the bug report that Tixy found and I'm
switching to iceweasel until the bug is fixed.

Thanks Tixy and Brian for your help.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Re: suspend on my asus eeepc

2010-02-05 Thread Daniel Dalton
On Wed, Feb 03, 2010 at 09:14:26AM +0100, Florian Reitmeir wrote:
> Hi,
> 
> s2ram
> s2disk

What package? I get command not found when running these as root. 

> > and put your script in.. /etc/pm/sleep.d
> this direcorty is generated by the package pm-utils in which you can
> also find the docs how to write the correct script.

Ah yes, thanks, I'll go do that.

Thanks,
Dan


signature.asc
Description: Digital signature


Re: Printer install question

2010-02-05 Thread Camaleón
On Thu, 04 Feb 2010 09:48:55 -0600, postid wrote:

(...)
 
> I've already installed the drivers. Should I follow the user's advice
> and connect the printer now to finish setting up the printer or should I
> uninstall the drivers, connect the printer and reinstall the drivers
> with the printer connected, then restart cups? Does it matter whether I
> do one or the other?

I'd say you don't have to care about the order (intall driver <-> device 
detection). In Windows (and some devices) it would make sense, but not in 
Linux.

BTW, you have a step by step guide here:

Canon PIXMA MP620 Linux printing and scanning via wireless network on 
Ubuntu
http://www.nervous.it/2009/04/canon-pixma-mp620-wireless-on-ubuntu/

Greetings,

-- 
Camaleón


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Re: losing xmodmap settings during X startup

2010-02-05 Thread Klistvud

Dne, 05. 02. 2010 05:26:59 je Joey Morris napisal(a):

On one of my Lenny installs, I had a somewhat similar (albeit by no  
means identical) problem that turned out to be due to some missing  
lines in my xorg.conf. The lines I had to add to xorg.conf in order to  
make things work as expected were:



Option "XkbRules" "xorg"
Option "XkbLayout" "si"


While the above lines probably won't help you with your problem, maybe  
it's worth checking whether xorg.conf in general is at fault?


--
Regards,

Klistvud
Certifiable Loonix User #481801
http://bufferoverflow.tiddlyspot.com


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Re: OT: Reply to with kmail

2010-02-05 Thread Thierry Chatelet
On Friday 05 February 2010 11:16:57 Sjors van der Pluijm wrote:
> Op vrijdag 5 februari 2010 11:05:40 schreef Thierry Chatelet:
> > Hi all,
> > I was just wondering why, when I click on Reply, with most of the
> > messages, by default, the reply address is to the list, while with some
> > mails, it goes to personal answers. By example, the 2 mails from JW
> > Foster have strange behavior.
> > Thierry
> 
> JW Foster has set Reply-to in his mail client
> 
Thank you! A simple look at the complete header of his mail would have teach 
me something!!! Thanks again.
Thierry


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Re: OT: Reply to with kmail

2010-02-05 Thread Sjors van der Pluijm
Op vrijdag 5 februari 2010 11:05:40 schreef Thierry Chatelet:
> Hi all,
> I was just wondering why, when I click on Reply, with most of the messages,
>  by default, the reply address is to the list, while with some mails, it
>  goes to personal answers. By example, the 2 mails from JW Foster have
>  strange behavior.
> Thierry
> 

JW Foster has set Reply-to in his mail client


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



OT: Reply to with kmail

2010-02-05 Thread Thierry Chatelet
Hi all,
I was just wondering why, when I click on Reply, with most of the messages, by 
default, the reply address is to the list, while with some mails, it goes to 
personal answers. By example, the 2 mails from JW Foster have strange 
behavior. 
Thierry


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Re: Google Earth kills system

2010-02-05 Thread Freeman
On Fri, Feb 05, 2010 at 12:33:19AM -0600, Cybe R. Wizard wrote:
> On Thu, 04 Feb 2010 18:28:10 -0600
> JW Foster  wrote:
> 
> > I built Google Earth as instructed in the installer. It starts OK then
> > as soon as the browser pops open both the mouse & my keyboard freeze
> > up & I have to reboot. It seems to open the browser & a popup with
> > tips. I,m able to kill the tips,if I leave the curser in the browser
> > screen, but in seconds the mouse dies & keyboard freezes up. Both are
> > completely unresponsive. Any tips?
> > Thanks 
> > John
> > 
> Do you have a 3d accelerated graphics card and, if so, is it enabled?
> Googleearth needs the heavy-duty graphics capabilities.
> 

Before I got fglrx configured for 3D support, GoogleEarth just popped up a
warning that it would run slowly and haltingly, complete with instructions,
and it did.  It didn't crash.

Once fglrx was installed correctly, it ran great.

Then support for my Radeon Mobility FireGL 9000 was dropped and the 2.6.30
kernel came along. fglrx upgrades eventually stopped working in the 2.6.26
kernel and I changed to Firmware-Linux and moved to the 2.6.30 and the new
xserver-xorg.

That seemed fine and, strangely, to improve over time. It went from
flickering but not quite halting to running very smoothly in the course of
about 4 sessions.  A few days later GoogleEarth and xscreensaver started
seg-faulting severely.  They took out big sections of my file system on
*two* computers.

I've never had crashes like that in 7 years of Debian. I've got one drive
completely down and unbootable.

I haven't found much evidence of what happened. None of the upgraded
packages in that period seem X related.  I've just been living in CLI land
until I get time to repair and investigate more.

-- 
Kind Regards,
Freeman


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Re: Bash question: get output as a variable?

2010-02-05 Thread Mart Frauenlob
On 05.02.2010 09:07, Ken Teague wrote:
> On Thu, Feb 4, 2010 at 2:09 PM, Dotan Cohen  wrote:
>> I'm scripting a backup solution, the line that does the business looks
>> like this:
>>
>> tar -zcvf - *  --exclude-from $EXCLUDES  | openssl des3 -salt -k $1 |
>> dd of=$(hostname)-$(date +%Y%m%d).tbz
>>
>> Because of the "v" flag tar writes to stdout the name of each file
>> copied. How can I get that output redirected to a variable, to use
>> later in the script?
> 
> You probably want to put the data into an array rather than a
> variable.  An explanation of how to do so can be found here:
>  http://tldp.org/LDP/abs/html/arrays.html
> 
> #!/bin/bash

tar ... 2> "$filename"
mapfile array1 < "$filename"

(don't know actually why '-u 2' option for mapfile does not complete for
me? would make it a 'one-liner'.)

on bash4.0+

regards

Mart


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Re: Bash question: get output as a variable?

2010-02-05 Thread bruno

Ken Teague wrote:

On Thu, Feb 4, 2010 at 2:09 PM, Dotan Cohen  wrote:
  

I'm scripting a backup solution, the line that does the business looks
like this:

tar -zcvf - *  --exclude-from $EXCLUDES  | openssl des3 -salt -k $1 |
dd of=$(hostname)-$(date +%Y%m%d).tbz

Because of the "v" flag tar writes to stdout the name of each file
copied. How can I get that output redirected to a variable, to use
later in the script?



You probably want to put the data into an array rather than a
variable.  An explanation of how to do so can be found here:
 http://tldp.org/LDP/abs/html/arrays.html

Scroll down to the end of Example 26-7 (just about Example 26-8).
Basically, direct stdout to a file, then cat the file to add it to an
array.


The array=( element1 element2 ... elementN )  initialization
operation, with the help of command substitution, makes it possible to
load the contents of a text file into an array.

#!/bin/bash

filename=sample_file

#cat sample_file
#
#1 a b c
#2 d e fg


declare -a array1

array1=( `cat "$filename"`)#  Loads contents
# List file to stdout  #+ of $filename into array1.
#
#  array1=( `cat "$filename" | tr '\n' ' '`)
#change linefeeds in file to spaces.
#  Not necessary because Bash does word splitting,
#+ changing linefeeds to spaces.

echo ${arra...@]}# List the array.
#  1 a b c 2 d e fg
#
#  Each whitespace-separated "word" in the file
#+ has been assigned to an element of the array.

element_count=${#array1[*]}
echo $element_count  # 8



  

Why not simply use the  t option for content listing :

tar tvf  * --exclude-from $EXCLUDES

Bruno



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org




Re: Bash question: get output as a variable?

2010-02-05 Thread Ken Teague
On Thu, Feb 4, 2010 at 2:09 PM, Dotan Cohen  wrote:
> I'm scripting a backup solution, the line that does the business looks
> like this:
>
> tar -zcvf - *  --exclude-from $EXCLUDES  | openssl des3 -salt -k $1 |
> dd of=$(hostname)-$(date +%Y%m%d).tbz
>
> Because of the "v" flag tar writes to stdout the name of each file
> copied. How can I get that output redirected to a variable, to use
> later in the script?

You probably want to put the data into an array rather than a
variable.  An explanation of how to do so can be found here:
 http://tldp.org/LDP/abs/html/arrays.html

Scroll down to the end of Example 26-7 (just about Example 26-8).
Basically, direct stdout to a file, then cat the file to add it to an
array.


The array=( element1 element2 ... elementN )  initialization
operation, with the help of command substitution, makes it possible to
load the contents of a text file into an array.

#!/bin/bash

filename=sample_file

#cat sample_file
#
#1 a b c
#2 d e fg


declare -a array1

array1=( `cat "$filename"`)#  Loads contents
# List file to stdout  #+ of $filename into array1.
#
#  array1=( `cat "$filename" | tr '\n' ' '`)
#change linefeeds in file to spaces.
#  Not necessary because Bash does word splitting,
#+ changing linefeeds to spaces.

echo ${arra...@]}# List the array.
#  1 a b c 2 d e fg
#
#  Each whitespace-separated "word" in the file
#+ has been assigned to an element of the array.

element_count=${#array1[*]}
echo $element_count  # 8



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Re: Bash question: get output as a variable?

2010-02-05 Thread Alexey Salmin
On Fri, Feb 5, 2010 at 1:20 PM, Javier Barroso  wrote:
> On Fri, Feb 5, 2010 at 1:06 AM, Stephen Powell  wrote:
>> On Thu, 4 Feb 2010 17:42:45 -0500 (EST), Javier Barroso wrote:
>>> In this case output goes to stderr, so:
>>>
>>> tar -zcvf - * --exclude-from $EXCLUDES 2> /tmp/data$$ | openssl ...
>>
>> Is that something you just have to find out by trial and error?
>> I checked the man page for tar, and there's nothing in there about
>> the -v output being written to stderr.  I'll take your word for it,
>> but in the general case, it's hard to tell.  Since stdout and
>> stderr both default to the terminal, and since the doc doesn't
>> say, how else would you know other than by trial and error?
> If you are using stdout as tar output, including filenames there will
> corrupt that output, so it is logical that in this case filenames goes
> to stderr.
>
> Sorry my bad english, I hope you understand my opinion
>

That's true: programs using stdout for data output certainly have to
use stderr as a way to report any additional info.

Alexey


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org