ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

QP2SHELL Verbose

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • QP2SHELL Verbose

    Forgive me if this is in the wrong forum.....

    I have a simple QP2SHELL call for an SFTP upload that is working great but I do need to get the log in verbose. I know I can use -vvv but do not know where it goes in the scheme of things.

    This is my QP2SHELL call now:

    CALL PGM(QP2SHELL) PARM('/QOpenSys/usr/local/bin/expect' '-f' &USEPATH)

    where the &USEPATH is the built SFTP statements.

    I know it has to be simple but I've tried in different places in the parms and keep getting errors or no verbose. I'm testing this with a simple list (LS) SFTP command.

    Thanks for any assistance!!!!

  • #2
    Meant to say the &USEPATH is the path to the IFS that holds the built SFTP statements.

    Comment


    • #3
      Check in your "expect" script for a "spawn sftp" command. Put the "-vvv" on that command to cause sftp to create a verbose log.

      Comment


      • #4
        This is the current command:

        "spawn sftp $username@$hostname"

        Would I put the -vvv after the "$hostname" or befor the "$username"? Would I need another "spawn sftp" command just for the -vvv?

        Thanks for your help!!!!!

        Comment


        • #5
          Good questions.

          Place the -vvv directly following the "sftp" and the number of v's determines the amount of detail in your log

          for very verbose logging use -vvv
          spawn sftp -vvv and then the other sftp parameters and environment variables

          for basic logging use -v
          spawn sftp -v and then the other sftp parameters and environment variables

          You do not need a separate "spawn sftp" command to set the detail level; it is a parameter within the one sftp command...HOWEVER...once you resolve whatever it is that you're dealing with that requires -vvv level of detail, you may want to back off to -v level of detail going forward.

          Comment


          • #6
            That worked!!!! Thank you so much!

            Comment

            Working...
            X