aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: execute a command when finished downloading  (Read 3486 times)

netgas

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
execute a command when finished downloading
« on: June 26, 2006, 05:41:59 AM »

Hello everyone.

i do not know much about scripting on linux and it didn't succeed to put the command directly into the amule.conf file.
I whote
ExecOnCompletionCommand=chown user:users /Incoming -R
or
ExecOnCompletionCommand=chown user:users "%FILE"
but it doens't work.

I need this, because i run amule under root and want the downloaded files to be available for users
.
Could you give me some hints
1)how to set up the example.sh and/or ExecOnCompletionCommand= ... properly
or
2)how to run amuled on linux-startup as a different user (not root, but user)

Couldn't find any help at all (google and forum)

Thank you in advance!
Logged

netgas

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
RE: execute a command when finished downloading
« Reply #1 on: June 26, 2006, 05:57:17 AM »

sorry for disturbing, i solved the problem
ExecOnCompletion was =0 :-(  :baby:

but i would be glad to know the solution via script. I put the line directly into amule.conf

Regards.
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: execute a command when finished downloading
« Reply #2 on: June 26, 2006, 06:04:49 AM »

Wrong forum section. This clearly states "Questions about our board, NOT ABOUT AMULE "
Logged