Question

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&min_price=&max_price=50000&country_id=241&region_id=&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.

Was it helpful?

Solution

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.

OTHER TIPS

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top