Better place for a script used in an action.

View: New views
5 Messages — Rating Filter:   Alert me  

Better place for a script used in an action.

by lordphoenix-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,
I would like use the action script fix_date.sh with an action but I
wonder if there is a recommended place where to put the script. And if
there is no official policy about where would you put this script?

Thanks for help.

Sorry for my bad English I don't speak it very often.


signature.asc (204 bytes) Download Attachment

Re: Better place for a script used in an action.

by Ciprian Popovici-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, 7 Oct 2009 14:34:09 +0200 lordphoenix <lordphoenix@...> wrote:
> I would like use the action script fix_date.sh with an action but I
> wonder if there is a recommended place where to put the script. And if
> there is no official policy about where would you put this script?

I would guess many of us already have a bunch of Bash scripts for various
small taks, in something like ~/bin/. So do the same. :) ~/bin is kind of
"official", in that some distributions will automatically include it in
the PATH environment variable, and it's (unofficially?) acknowledged as
the usual place to keep personal scripts.

---------------------------------------------------------------------
To unsubscribe, e-mail: claws-mail-users-unsubscribe@...
For additional commands, e-mail: claws-mail-users-help@...


Re: Better place for a script used in an action.

by Michael-352 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


If you put scripts in your home directory they will be backuped with your personal data.
A possibility would be to create ~/.claws-mail/scripts.
Other good choices would be to create /opt/scripts or use /usr/local/bin.

You add PATHes in ~/.profile which is less tedious than /etc/profile which system udpates may ask to overwrite. If you call scripts by the full path then you don't need to fiddle with PATH.

---------------------------------------------------------------------
To unsubscribe, e-mail: claws-mail-users-unsubscribe@...
For additional commands, e-mail: claws-mail-users-help@...


Re: Better place for a script used in an action.

by Ciprian Popovici-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, 12 Oct 2009 20:57:27 +0200 Michael <codejodler@...> wrote:
> If you put scripts in your home directory they will be backuped with
> your personal data.

Isn't this something you want to happen? After all, they are custom
scripts which, if you lose, you may have a hard time redoing from scratch.
And bash scripts are very small and don't take much space, so they won't
increase the size of your backup.

---------------------------------------------------------------------
To unsubscribe, e-mail: claws-mail-users-unsubscribe@...
For additional commands, e-mail: claws-mail-users-help@...


Re: Better place for a script used in an action.

by Michael-352 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ciprian:

> Isn't this something you want to happen?

yes it's a good thing. that's why i mentioned it :)

---------------------------------------------------------------------
To unsubscribe, e-mail: claws-mail-users-unsubscribe@...
For additional commands, e-mail: claws-mail-users-help@...