DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2008-06-08 01:34:28

orhor
Member
Registered: 2008-06-08
Posts: 20

how to delete files via script?

hi,
im completely new to linux stuff, so give me a chance to ask you something.


Problem:
i downloaded some files via BitTorrent. I moved them from BT/completed directory to another dir. Now I cant delete them. I think problem is that they now have only root permisions. I would need to delete them via some script or via telnet if possible.

can you give me some links to good linux scripting tutorials? (scripting should not be problem for me, but I have to learn the linux especialities smile)

or can you give me pls some example script?

I think it could be done via funplug file. I thought I would create one script file named fun_plug and its only content would be somthing like "delete /myDirectory". Please, show me the way.

Thank you

Last edited by orhor (2008-06-08 01:35:15)

Offline

 

#2 2008-06-08 02:03:53

bq041
Member
From: USA
Registered: 2008-03-19
Posts: 709

Re: how to delete files via script?

You could do that, but if you make a mistake, you could delete a whole lot more.  I would recommend downloading fonz fun plug (ffp) and using that for telnet access.  Then you can use the telnet access to erase anything you want using the command line.

FFP: http://dns323.kood.org/howto:ffp  - I personally use ffp 0.5


DNS-323     F/W: 1.04b84  H/W: A1  ffp: 0.5  Drives: 2X 400 GB Seagate SATA-300
DNS-323     F/W: 1.05b28  H/W: B1  ffp: 0.5  Drives: 2X 1 TB  WD SATA-300
DSM-G600   F/W: 1.02       H/W: B                Drive:  500 GB WD ATA

Offline

 

#3 2008-06-08 11:02:19

orhor
Member
Registered: 2008-06-08
Posts: 20

Re: how to delete files via script?

thanks for answering. Could you direct me to some linux command line overview or refference? thanx

edit: I found this: http://linuxcommand.org/ looks very lama-friendly, thats something for me wink

Last edited by orhor (2008-06-08 11:20:06)

Offline

 

#4 2008-06-08 12:15:01

orhor
Member
Registered: 2008-06-08
Posts: 20

Re: how to delete files via script?

solved thanx

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB