Forum

Share

Please consider registering
guest

Log In RegisterMembers
Or log in with

Register | Lost password?
Advanced Search:

— Forum Scope —



— Match —



— Forum Options —




Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
Run File in Linux
September 4, 2009
5:44 am
AJK
Guest

I have been trying to use filter and run file. But it doesn't work

OS > CentOS (Linux)

What am i missing? Has anybody seen a similar issue.

Share
September 7, 2009
9:01 am
Admin
Forum Posts: 323
Member Since:
July 12, 2008
Offline

I'll try to test this in the next week or so. I really need to update my extensions for TB beta 4, so I'll be checking stuff like this prior to that release. But I am not aware of any reason that it should not work under Linux.

Share
September 7, 2009
11:59 pm
AJK
Guest

Solved my problem.

I was trying to run a shell script directly.

It worked by using

"/bin/sh,/home/ajk/shell.sh,@SUBJECT@"

Appreciate your work.

Thank You.

Share
October 7, 2010
10:24 am
lusiano
Guest

How to make bash script or file.sh to capture parameter? I try using $1 in script but it doesnt capture parameter

 

file.sh

#! /bin/bash

echo $1 >> text.txt

 

run file from FittaQuilla

/home/file.sh,@SUBJECT@

 

Try to test it, and I see from

- the filter log that the filter run

- no error from error console

 

but the text.txt is still empty, the permission is 777, try to run it from shell with

./file.sh helllo

 

and the test.txt have "hello" word in it.

 

Please help and thank you.

Share
October 7, 2010
11:59 am
Admin
Forum Posts: 323
Member Since:
July 12, 2008
Offline

I am only an occasional Linux user, and that for server work, so I don't run Thunderbird on Linux very often. But let me make a suggestion here.

I suspect what is happening is that /home/file.sh as a script is not really a system level process, which is what RUN starts, but is interpreted that way by other software (like by bash itself). So I think that what you need to do is to actually run bash from the FiltaQuilla RUN command, and figure out how to pass parameters to it to then get it to do what you want it to do. There must be a way to start bash where the @SUBJECT@ that will appear as a parameter will then get interpreted that way by the script.

Share
October 10, 2010
11:04 am
lusiano
Guest

My bad

Your program is WORK GREAT !

File text.txt goes to my $HOME and i'm looking at directory where file.sh run

I wish i know this earlier and not wasting 2 days configuring getmail + procmail for gmail and fail…

I like your program because its easy to use and with GUI !

Thanks a lot :)

Share
Forum Timezone: UTC -8

Most Users Ever Online: 18

Currently Online:
9 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

bobkatz: 8

BigMike: 8

t2m: 7

zabolyx: 7

taa: 6

onlyme: 6

Member Stats:

Guest Posters: 130

Members: 565

Moderators: 1

Admins: 1

Forum Stats:

Groups: 1

Forums: 7

Topics: 231

Posts: 802

Moderators: rkent (323)

Administrators: rkent (323)