![]() |
Command Line Follies - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Command Line Follies (/showthread.php?tid=58129) |
Command Line Follies - El Forum - 05-19-2013 [eluser]bhogsett[/eluser] I am trying to run a command line call to a codeigniter method. It works perfectly on my Mac (OSX) and does not work on the server (HostMonster) on the internet. The problem is the same whether I run the codeigniter from a command line on the server or use a cron call. In both cases the default codeigniter page is displayed rather than running the method. Oh, if I call the method from a browser on the server it works perfectly. Here are the various incarnations: php index.php scores create (Work in OSX and not on server) path/index.php/scores/create (Works on OSX and on server) And to be complete here is the cron .sh script that I ulitmately want to run: #!/bin/bash cd path ls /ramdisk/bin/php5 index.php scores create The ls is obviously just for testing and the cron run displays a directory listinbg and then the default page on the server and works perfectly on OSX. Any suggestions? Maybe there is some server configuration that is required for the command line call to work in codeigniter? Thanks. Bill Command Line Follies - El Forum - 05-21-2013 [eluser]bhogsett[/eluser] 110 views and no responses. I am going to use wget, but I hate kludges like that. Any other suggestions? Bill Command Line Follies - El Forum - 05-21-2013 [eluser]flacznik[/eluser] Just to tell you - yesterday I tried to ask about something and nobody replied. The framework is good but I think the community is still 'UNDER COSTRUCTION'.... |