|
Post by StefanPendl on May 20, 2009 1:21:37 GMT -5
sh is the POSIX shell and is the oldest of the UNIX shells, I think. bash is the born again shell and is included in all modern Linux distributions. There are other shells, like ksh and csh available too, but they are seldom used nowadays. Why would you want to have rc.local being executed with perl, when you add #!/usr/bin/perl as the first line If you like to have it executed with bash you need to use #!/usr/bin/bash or #!/bin/bash as the first line. The #!{path to shell} tells the command interpreter, which shell he needs to use to execute the script. Use man sh in a terminal to get an explanation of the command line parameters of the shell.
|
|
|
Post by mackrackit on May 21, 2009 1:19:53 GMT -5
Like Stefan said before, that is taken care of in the first line of the script.
Have you tried using the full path to sendmail when you call it from RB?
|
|
|
Post by StefanPendl on May 21, 2009 2:15:41 GMT -5
In general /usr/bin is the main folder for binaries of the O/S. Usually other binaries just add a link there, so they can be found even if installed into /opt.
Check /usr/bin for a perl entry, if it is there, there is nothing to change, else you would need to check the perl installation.
The ramdisk is a temporary disk, so I think you need to install perl locally.
|
|
|
Post by Alyce on May 21, 2009 5:30:34 GMT -5
Hi, in rb I am calling sendEmail via shell. a$=shell$('sendEmail andparameters' ) but sometimes work and sometimes doesnt work. Are you using this? caspian.dotconf.net/menu/Software/SendEmail/I had a lot of problems getting it to work properly. It appears to work okay when the shell command is in the main body of the code. It appears to fail when it is called in a function or sub, or as an object in a separate source code file. (All variables, paths, etc. are vetted or declared as global.)
|
|
|
Post by StefanPendl on May 22, 2009 3:22:43 GMT -5
What Linux version do you use Would you mind posting a simple example that we could use to test this on our Linux installations
|
|
|
Post by mackrackit on May 23, 2009 5:27:37 GMT -5
You running the free version on an outside server?? How do you do that?
|
|