tags:

views:

31

answers:

2

Hard-to-read-line

@daily export sunshine="~/logs/Sunshine-`date '+\%F'`" && export sunshineUrl="http://www.sunshine.net/main/search_results.asp?currency_id=1&min_price=&max_price=50000&country_id=241&region_id=&Submit=Search" && mkdir -p $sunshine && cd $sunshine && wget --mirror -l 1 $sunshineUrl

Which mark do I need to have it on many lines?

@daily   <SOME MARK HERE>
export sunshine="~/logs/Sunshine-`date '+\%F'`" &&  <SOME MARK HERE>
export sunshineUrl="http://www.sunshine.net/main/search_results.asp?currency_id=1&amp;min_price=&amp;max_price=50000&amp;country_id=241&amp;region_id=&amp;Submit=Search" && <SOME MARK HERE>
mkdir -p $sunshine && <SOME MARK HERE>
cd $sunshine && wget --mirror -l 1 $sunshineUrl

No success by appending \, //, \n or /n.

+2  A: 

Might it be easier to take all the above and create a shell script from it ? It'll be more maintainable in the long run.

Brian Agnew
Much, much, much more maintainable!
Jonathan Leffler
Thank you, I will buy your tip.
HH
A: 

I believe that you can do it with a semicolon ; but I agree with Brian that you need to take the above and put it in a script and run from cron.

Courtland Halbrook
@daily ;echo "hello" echo "haeus atestaoe usn" <-- not working with enters
HH
Robert Menteer
I meant to take out the export sunshineUrl="http://www.sunshine.net/main/search_results.asp?currency_id=1 etc...
Courtland Halbrook