Jackman | 1 Apr 2011 05:41
Picon

Bash String

Here's another crazy question:

I'm writing a script that deals with the creation of backup files.  It
seems like it would be wise to come up with a file name ahead of time
in the off chance that my generation criteria (the date and time)
changes while the script is running.

In short, the script is as follows:

Come up with file name.
Create the archive from $SRC.
If older files exist, compare the new file and the most recent files
using md5sum.
If the files don't differ, delete the new file.

This is the line that generates to the filename:

NEW_FILE="$($DEST/www_$(date +\%Y\%m\%d-\%H\%M).tar.bz2)"

I thought this just generated and assigned a string.  Why do I get the
following response?

-bash: /var/chroot/home/content/07/7224307/backups/www_20110331-2029.tar.bz2:
No such file or directory

Why doesn't bash does take it as a string of characters?

BTW, I think it's worth including the reason why I'm going to the method above.

The old script is as follows:
(Continue reading)

Russell Johnson | 1 Apr 2011 06:05

Re: Bash String


On Mar 31, 2011, at 8:41 PM, Jackman wrote:

> NEW_FILE="$($DEST/www_$(date +\%Y\%m\%d-\%H\%M).tar.bz2)"
> 
> I thought this just generated and assigned a string.  Why do I get the
> following response?
> 
> -bash: /var/chroot/home/content/07/7224307/backups/www_20110331-2029.tar.bz2:
> No such file or directory

Seems to work right for me if I use:

NEW_FILE="$DEST/www_$(date +\%Y\%m\%d-\%H\%M).tar.bz2"

Russell Johnson
russ <at> dimstar.net
Jackman | 1 Apr 2011 06:08
Picon

Re: Bash String

Thank you!  It's time for bed...

On Thu, Mar 31, 2011 at 9:05 PM, Russell Johnson <russ <at> dimstar.net> wrote:
>
> On Mar 31, 2011, at 8:41 PM, Jackman wrote:
>
>> NEW_FILE="$($DEST/www_$(date +\%Y\%m\%d-\%H\%M).tar.bz2)"
>>
>> I thought this just generated and assigned a string.  Why do I get the
>> following response?
>>
>> -bash: /var/chroot/home/content/07/7224307/backups/www_20110331-2029.tar.bz2:
>> No such file or directory
>
> Seems to work right for me if I use:
>
> NEW_FILE="$DEST/www_$(date +\%Y\%m\%d-\%H\%M).tar.bz2"
>
> Russell Johnson
> russ <at> dimstar.net
>
>
>
> _______________________________________________
> EUGLUG mailing list
> euglug <at> euglug.org
> http://www.euglug.org/mailman/listinfo/euglug
>

--

-- 
(Continue reading)

Bob Miller | 1 Apr 2011 06:23
Gravatar

Re: Bash String

"different md5sums depending on whether or not the source is
piped" should be a big red flag.  Somebody somewhere is corrupting
your file.  The only exception I can think of is if you're transferring over
HTTP, files are sometime (de)compressed automatically,.

You should definitely verify that the file you write can be read back
and untarred.

On Thu, Mar 31, 2011 at 8:41 PM, Jackman <kd7nyq <at> gmail.com> wrote:
> Here's another crazy question:
>
> I'm writing a script that deals with the creation of backup files.  It
> seems like it would be wise to come up with a file name ahead of time
> in the off chance that my generation criteria (the date and time)
> changes while the script is running.
>
> In short, the script is as follows:
>
> Come up with file name.
> Create the archive from $SRC.
> If older files exist, compare the new file and the most recent files
> using md5sum.
> If the files don't differ, delete the new file.
>
> This is the line that generates to the filename:
>
> NEW_FILE="$($DEST/www_$(date +\%Y\%m\%d-\%H\%M).tar.bz2)"
>
> I thought this just generated and assigned a string.  Why do I get the
> following response?
(Continue reading)

Joshua N Pritikin | 4 Apr 2011 17:44
Picon
Favicon

qwest dsl router?

My DSL router died. Can somebody recommend a qwest-compatibility DSL 
router that I can flash with an open source firmware?

Thanks.
Michael Miller | 4 Apr 2011 18:29
Picon

Re: qwest dsl router?

Anything that will do ADSL2 plus if memory serves me correctly.

http://wiki.sangoma.com/wanpipe-linux-adsl2-support

Or anything with the same specs as this.  I would talk with qwest and
ask for the newest CPE equipment list.

--mmiller

On Mon, Apr 4, 2011 at 8:44 AM, Joshua N Pritikin <jpritikin <at> pobox.com> wrote:
> My DSL router died. Can somebody recommend a qwest-compatibility DSL
> router that I can flash with an open source firmware?
>
> Thanks.
> _______________________________________________
> EUGLUG mailing list
> euglug <at> euglug.org
> http://www.euglug.org/mailman/listinfo/euglug
>
Mr O | 4 Apr 2011 18:43
Picon
Favicon

Re: qwest dsl router?

Just disable the firewall/routing/NAT/whatever on the DSL modem and use your own router from there. You
won't find many DSL modems that will take a different firmware. 

--- On Mon, 4/4/11, Joshua N Pritikin <jpritikin <at> pobox.com> wrote:

> From: Joshua N Pritikin <jpritikin <at> pobox.com>
> Subject: [Eug-lug] qwest dsl router?
> To: euglug <at> euglug.org
> Date: Monday, April 4, 2011, 8:44 AM
> My DSL router died. Can somebody
> recommend a qwest-compatibility DSL 
> router that I can flash with an open source firmware?
> 
> Thanks.
> _______________________________________________
> EUGLUG mailing list
> euglug <at> euglug.org
> http://www.euglug.org/mailman/listinfo/euglug
> 
abrown | 5 Apr 2011 03:04

Re: qwest dsl router?

My DSL modem is separate from my router.  You may want to consider doing
the same.  I use a WRT54GL router for maximum compatibility with Linux.
-- 
Allen Brown  http://brown.armoredpenguin.com/~abrown/
  The children who know how to think for themselves spoil the
  harmony of the collective society that is coming, where
  everyone would be interdependent.
  --- John Dewey, architect of the U.S. public school system

----- Original Message -----
From: "Mr O" <notanatheist <at> yahoo.com>
To: "Eugene Unix and Gnu/Linux User Group" <euglug <at> euglug.org>
Sent: Monday, April 4, 2011 9:43:10 AM
Subject: Re: [Eug-lug] qwest dsl router?

Just disable the firewall/routing/NAT/whatever on the DSL modem and use your own router from there. You
won't find many DSL modems that will take a different firmware. 

--- On Mon, 4/4/11, Joshua N Pritikin <jpritikin <at> pobox.com> wrote:

> From: Joshua N Pritikin <jpritikin <at> pobox.com>
> Subject: [Eug-lug] qwest dsl router?
> To: euglug <at> euglug.org
> Date: Monday, April 4, 2011, 8:44 AM
> My DSL router died. Can somebody
> recommend a qwest-compatibility DSL 
> router that I can flash with an open source firmware?
> 
> Thanks.
> _______________________________________________
(Continue reading)

David Mandel | 5 Apr 2011 10:03

ANNOUNCEMENT: April PLUG Meeting

                            MEETING ANNOUNCEMENT

             PLUG Meeting will be different than normal

                          Richard Stallman
                           is speaking at
                     Portland State University
                 during PLUG's normal meeting time.

        So, instead of having a PLUG meeting we will attend
               Richard Stallman's talk at 7:30 PM at

        The PSU Native American Student and Community Center
                         710 SW Jackson St
                       Portland Oregon 97201

    And if Stallman's talk gets out early enough we will
    go over to The Lucky Lab Northwest Beerhall at 1945 NW Quimby
    Portland, Oregon afterwards.

    *******************************************************************

                              Abstract
                                for
                       Richard Stallman Talk

                            Presented by
                     Portland State University
                             Chapter of
                 Association of Computing Machinery
(Continue reading)

abrown | 5 Apr 2011 17:22

Re: ANNOUNCEMENT: April PLUG Meeting

I may be blind, but I can't find the date for the talk
in this announcement.
-- 
Allen Brown  http://brown.armoredpenguin.com/~abrown/
  A man cannot be comfortable without his own approval. --- Mark Twain

----- Original Message -----
From: "David Mandel" <dmandel <at> pdxLinux.org>
To: "Eugene Linux Users List" <euglug <at> euglug.org>
Sent: Tuesday, April 5, 2011 1:03:58 AM
Subject: [Eug-lug] ANNOUNCEMENT: April PLUG Meeting

                            MEETING ANNOUNCEMENT

             PLUG Meeting will be different than normal

                          Richard Stallman
                           is speaking at
                     Portland State University
                 during PLUG's normal meeting time.

        So, instead of having a PLUG meeting we will attend
               Richard Stallman's talk at 7:30 PM at

        The PSU Native American Student and Community Center
                         710 SW Jackson St
                       Portland Oregon 97201

    And if Stallman's talk gets out early enough we will
    go over to The Lucky Lab Northwest Beerhall at 1945 NW Quimby
(Continue reading)


Gmane