Re: executing shell scripts
http://images.google.com/images?q=facepalm ;-) On 8 Oct 2008, at 16:00, Ryan McKillen wrote: > Martin, thanks for the continued help. > > David, wow. That was it. Think I subconsciously omitted them since > it's not > going to run through the web server. Thank you. > > > > On Wed, Oct 8, 2008 at 2:54 AM, David C. Zentgraf <[EMAIL PROTECTED]> > wrote: > >> >> Just to make sure: >> Your code is inside tags, is it? >> >> On 7 Oct 2008, at 21:53, Ryan McKillen wrote: >> >>> I am using cloud.php as the filename. And just to be safe, I changed >>> to var >>> $uses = array(); in case there was a problem with my model. Am I >>> executing >>> the shell properly? >>> >>> cd ~/cake/console >>> ./cake cloud >>> >>> class CloudShell extends Shell { >>> var $uses = array(); >>> function main() { >>> $this->out("test\n"); >>> } >>> }Error: Class CloudShell could not be loaded >>> >>> >>> >>> >>> On Tue, Oct 7, 2008 at 2:16 AM, [EMAIL PROTECTED] < >>> [EMAIL PROTECTED]> wrote: >>> Another basic thing to double-check is the filename. It should be cloud.php in your case. /Martin On Oct 7, 2:54 am, Ryan <[EMAIL PROTECTED]> wrote: > Sorry, it is in ~/vendors/shells > > On Oct 6, 1:41 pm, "dr. Hannibal Lecter" <[EMAIL PROTECTED]> > wrote: > >> Is it in ~/vendors or ~/vendors/shells ? > >> On Oct 6, 7:30 pm, Ryan <[EMAIL PROTECTED]> wrote: > >>> I am trying to create my first shell script. The shell script is >>> in / >>> vendors and when I run, I get this: > >>> class CloudShell extends Shell { >>> var $uses = array('Item'); >>> function main() { >>>$this->out("test\n"); >>> } > >>> }Error: Class CloudShell could not be loaded > >>> What am I missing? Thanks! > >>> >> >> >>> >> > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: executing shell scripts
Martin, thanks for the continued help. David, wow. That was it. Think I subconsciously omitted them since it's not going to run through the web server. Thank you. On Wed, Oct 8, 2008 at 2:54 AM, David C. Zentgraf <[EMAIL PROTECTED]> wrote: > > Just to make sure: > Your code is inside tags, is it? > > On 7 Oct 2008, at 21:53, Ryan McKillen wrote: > > > I am using cloud.php as the filename. And just to be safe, I changed > > to var > > $uses = array(); in case there was a problem with my model. Am I > > executing > > the shell properly? > > > > cd ~/cake/console > > ./cake cloud > > > > class CloudShell extends Shell { > >var $uses = array(); > >function main() { > > $this->out("test\n"); > >} > > }Error: Class CloudShell could not be loaded > > > > > > > > > > On Tue, Oct 7, 2008 at 2:16 AM, [EMAIL PROTECTED] < > > [EMAIL PROTECTED]> wrote: > > > >> > >> Another basic thing to double-check is the filename. It should be > >> cloud.php in your case. > >> > >> /Martin > >> > >> On Oct 7, 2:54 am, Ryan <[EMAIL PROTECTED]> wrote: > >>> Sorry, it is in ~/vendors/shells > >>> > >>> On Oct 6, 1:41 pm, "dr. Hannibal Lecter" <[EMAIL PROTECTED]> > >>> wrote: > >>> > Is it in ~/vendors or ~/vendors/shells ? > >>> > On Oct 6, 7:30 pm, Ryan <[EMAIL PROTECTED]> wrote: > >>> > > I am trying to create my first shell script. The shell script is > > in / > > vendors and when I run, I get this: > >>> > > class CloudShell extends Shell { > > var $uses = array('Item'); > > function main() { > > $this->out("test\n"); > > } > >>> > > }Error: Class CloudShell could not be loaded > >>> > > What am I missing? Thanks! > >>> > >> > > > > > > > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: executing shell scripts
Just to make sure: Your code is inside tags, is it? On 7 Oct 2008, at 21:53, Ryan McKillen wrote: > I am using cloud.php as the filename. And just to be safe, I changed > to var > $uses = array(); in case there was a problem with my model. Am I > executing > the shell properly? > > cd ~/cake/console > ./cake cloud > > class CloudShell extends Shell { >var $uses = array(); >function main() { > $this->out("test\n"); >} > }Error: Class CloudShell could not be loaded > > > > > On Tue, Oct 7, 2008 at 2:16 AM, [EMAIL PROTECTED] < > [EMAIL PROTECTED]> wrote: > >> >> Another basic thing to double-check is the filename. It should be >> cloud.php in your case. >> >> /Martin >> >> On Oct 7, 2:54 am, Ryan <[EMAIL PROTECTED]> wrote: >>> Sorry, it is in ~/vendors/shells >>> >>> On Oct 6, 1:41 pm, "dr. Hannibal Lecter" <[EMAIL PROTECTED]> >>> wrote: >>> Is it in ~/vendors or ~/vendors/shells ? >>> On Oct 6, 7:30 pm, Ryan <[EMAIL PROTECTED]> wrote: >>> > I am trying to create my first shell script. The shell script is > in / > vendors and when I run, I get this: >>> > class CloudShell extends Shell { > var $uses = array('Item'); > function main() { > $this->out("test\n"); > } >>> > }Error: Class CloudShell could not be loaded >>> > What am I missing? Thanks! >>> >> > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: executing shell scripts
No, I think you are not. you should be in your app directory when running shells. Or you should let the cake know which app you want to run shells for. On my system a full syntax would look like this: /Users/martin/Sites/cake/cake/console/cake -app /Users/martin/Sites/ cake/great cload I actually don't mind specifying the app this way since it is what I need to do on my server as-well for running cron jobs. On Oct 7, 2:53 pm, "Ryan McKillen" <[EMAIL PROTECTED]> wrote: > I am using cloud.php as the filename. And just to be safe, I changed to var > $uses = array(); in case there was a problem with my model. Am I executing > the shell properly? > > cd ~/cake/console > ./cake cloud > > class CloudShell extends Shell { > var $uses = array(); > function main() { > $this->out("test\n"); > } > > }Error: Class CloudShell could not be loaded > > On Tue, Oct 7, 2008 at 2:16 AM, [EMAIL PROTECTED] < > > [EMAIL PROTECTED]> wrote: > > > Another basic thing to double-check is the filename. It should be > > cloud.php in your case. > > > /Martin > > > On Oct 7, 2:54 am, Ryan <[EMAIL PROTECTED]> wrote: > > > Sorry, it is in ~/vendors/shells > > > > On Oct 6, 1:41 pm, "dr. Hannibal Lecter" <[EMAIL PROTECTED]> wrote: > > > > > Is it in ~/vendors or ~/vendors/shells ? > > > > > On Oct 6, 7:30 pm, Ryan <[EMAIL PROTECTED]> wrote: > > > > > > I am trying to create my first shell script. The shell script is in / > > > > > vendors and when I run, I get this: > > > > > > class CloudShell extends Shell { > > > > > var $uses = array('Item'); > > > > > function main() { > > > > > $this->out("test\n"); > > > > > } > > > > > > }Error: Class CloudShell could not be loaded > > > > > > What am I missing? Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: executing shell scripts
I am using cloud.php as the filename. And just to be safe, I changed to var $uses = array(); in case there was a problem with my model. Am I executing the shell properly? cd ~/cake/console ./cake cloud class CloudShell extends Shell { var $uses = array(); function main() { $this->out("test\n"); } }Error: Class CloudShell could not be loaded On Tue, Oct 7, 2008 at 2:16 AM, [EMAIL PROTECTED] < [EMAIL PROTECTED]> wrote: > > Another basic thing to double-check is the filename. It should be > cloud.php in your case. > > /Martin > > On Oct 7, 2:54 am, Ryan <[EMAIL PROTECTED]> wrote: > > Sorry, it is in ~/vendors/shells > > > > On Oct 6, 1:41 pm, "dr. Hannibal Lecter" <[EMAIL PROTECTED]> wrote: > > > > > Is it in ~/vendors or ~/vendors/shells ? > > > > > On Oct 6, 7:30 pm, Ryan <[EMAIL PROTECTED]> wrote: > > > > > > I am trying to create my first shell script. The shell script is in / > > > > vendors and when I run, I get this: > > > > > > class CloudShell extends Shell { > > > >var $uses = array('Item'); > > > >function main() { > > > > $this->out("test\n"); > > > >} > > > > > > }Error: Class CloudShell could not be loaded > > > > > > What am I missing? Thanks! > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: executing shell scripts
Another basic thing to double-check is the filename. It should be cloud.php in your case. /Martin On Oct 7, 2:54 am, Ryan <[EMAIL PROTECTED]> wrote: > Sorry, it is in ~/vendors/shells > > On Oct 6, 1:41 pm, "dr. Hannibal Lecter" <[EMAIL PROTECTED]> wrote: > > > Is it in ~/vendors or ~/vendors/shells ? > > > On Oct 6, 7:30 pm, Ryan <[EMAIL PROTECTED]> wrote: > > > > I am trying to create my first shell script. The shell script is in / > > > vendors and when I run, I get this: > > > > class CloudShell extends Shell { > > > var $uses = array('Item'); > > > function main() { > > > $this->out("test\n"); > > > } > > > > }Error: Class CloudShell could not be loaded > > > > What am I missing? Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: executing shell scripts
Sorry, it is in ~/vendors/shells On Oct 6, 1:41 pm, "dr. Hannibal Lecter" <[EMAIL PROTECTED]> wrote: > Is it in ~/vendors or ~/vendors/shells ? > > On Oct 6, 7:30 pm, Ryan <[EMAIL PROTECTED]> wrote: > > > I am trying to create my first shell script. The shell script is in / > > vendors and when I run, I get this: > > > class CloudShell extends Shell { > > var $uses = array('Item'); > > function main() { > > $this->out("test\n"); > > } > > > }Error: Class CloudShell could not be loaded > > > What am I missing? Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: executing shell scripts
Is it in ~/vendors or ~/vendors/shells ? On Oct 6, 7:30 pm, Ryan <[EMAIL PROTECTED]> wrote: > I am trying to create my first shell script. The shell script is in / > vendors and when I run, I get this: > > class CloudShell extends Shell { > var $uses = array('Item'); > function main() { > $this->out("test\n"); > } > > }Error: Class CloudShell could not be loaded > > What am I missing? Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
executing shell scripts
I am trying to create my first shell script. The shell script is in / vendors and when I run, I get this: class CloudShell extends Shell { var $uses = array('Item'); function main() { $this->out("test\n"); } }Error: Class CloudShell could not be loaded What am I missing? Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---