You are not logged in.

#1 2011-12-22 17:35:05

Lockheed
Member
Registered: 2010-03-16
Posts: 1,524

Translateing windows script into linux

I have a script which on Windows used to update ipfilter dat file for utorrent. It looks like this:

@echo off
wget.exe -r --tries=3 http://emulepawcio.sourceforge.net/nieu … filter.dat -O ipfilter.dat

I would like to rewrite it into linux format and also add a line where the newly downloaded ipfilter.dat is being copied over an old file in /home/user/.utorrent

How should it look?

Offline

#2 2011-12-22 19:47:24

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Translateing windows script into linux

Have you tried reading wget man page?

Offline

#3 2011-12-22 19:54:28

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: Translateing windows script into linux

Remove @echo off
Remove .exe

The rest is up to you...


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

Board footer

Powered by FluxBB