Forum

Or log in with
 
Current User: Guest Login Register
Please consider registering


Register? | Lost Your Password?

Run File in Linux

Reply to Post Add a New Topic
UserPost

5:44 am
September 4, 2009


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.

9:01 am
September 7, 2009


rkent

Admin

posts 279

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.

11:59 pm
September 7, 2009


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.

10:24 am
October 7, 2010


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.

11:59 am
October 7, 2010


rkent

Admin

posts 279

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.

11:04 am
October 10, 2010


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 :)

Reply to Post

Reply to Topic:
Run File in Linux

Guest Name (Required):

Guest Email (Required):

NOTE: New Posts are subject to administrator approval before being displayed

Smileys
Confused Cool Cry Embarassed Frown Kiss Laugh Smile Surprised Wink Yell
Post New Reply

Guest URL (required)

Math Required!
What is the sum of:
6 + 3
   


 
Share