I am very confused here. I'm trying to run scp as ...
# best-practices
t
I am very confused here. I'm trying to run scp as a utility and I can't get it to work. This works
Copy code
- name: scp
      namespace: scp
      commands:
        get_file:
          executable: scp
          args: -h
This doesn't
Copy code
- name: test
      namespace: test
      commands:
        get_file:
          executable: /bin/bash
          args: -c "./test.sh"
Neither does this
Copy code
- name: test
      namespace: test
      commands:
        get_file:
          executable: ssh
          args: -h
Here is my output from the frist scp test
Copy code
[tanner@sato ubb-meltano]$ mel run scp
2025-04-08T16:50:21.070409Z [info     ] Environment 'dev' is active   
2025-04-08T16:50:21.117648Z [info     ] usage: scp [-346ABCOpqRrsTv] [-c cipher] [-D sftp_server_path] [-F ssh_config] cmd_type=command name=scp stdio=stderr
2025-04-08T16:50:21.117864Z [info     ]            [-i identity_file] [-J destination] [-l limit] [-o ssh_option] cmd_type=command name=scp stdio=stderr
2025-04-08T16:50:21.117973Z [info     ]            [-P port] [-S program] [-X sftp_option] source ... target cmd_type=command name=scp stdio=stderr
Need help fixing this problem? Visit <http://melta.no/> for troubleshooting steps, or to
join our friendly Slack community.

'NoneType' object is not subscriptable
The other tests produce the same "NoneType" error but they don't print the command's help message. test.sh is just
echo hello
. I made an scp extension that used to be in my utilities. It looked like this
Copy code
- name: scp-ext
      namespace: scp-ext
      pip_url: '../scp-ext'
      executable: scp
I wonder if that's cached and that's why the scp command is the only thing that works? I've been banging my head against this for days. Any help would really be appreciated
1