I frequently use drush scr
for little tasks throughout my day. Sometimes these end up a proper commands in my environment, but more often they are just standalone things.
If I have @foo
set up in my drush aliases with remote-host
, and try to run a local script, I get
$ drush @foo scr ./foo.php
Unable to find any of the following: [error]
/home/mpd/drush/commands/core/./foo.php, /home/mpd/./foo.php
Can this command run a local script on a remote site?
drush @foo status
where, @foo is the remote alias? I know these are basic questions...but it's what I thought of first.drush scr
don't need to be +x unless you want to include the shebang.