Follow Our FB Page << >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...

QSH CMD('/QOpenSys/bin/sftp -b/home/test/myfile.txt

Can u plz tell me what the above code do exactly?

Answers were Sorted based on User's Feedback

PGM QSH CMD('/QOpenSys/bin/sftp -b/home/test/myfile.txt serverUserID@server') E..

Answer / syam

-b = Batch file
/home/test/myfile.txt = path of input file

serverUserID@server' = ip address


PUT or Get command

Bye command = Quit

SFTP is a Linux Unix command

Is This Answer Correct ?    2 Yes 0 No

PGM QSH CMD('/QOpenSys/bin/sftp -b/home/test/myfile.txt serverUserID@server') E..

Answer / ravi

I believe, it gets the details of the file mentioned in the path like created/changed date etc.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More IBM AS400 AllOther Interview Questions

what is logical file?

0 Answers   IBM,

define the purpose of the *cat function?

1 Answers   IBM,

What is the difference between a Physical File & a Logical?

28 Answers   Accenture, ACS, IBM,

how many triggers can be associated with a file?

1 Answers   IBM,

what is externally described file ?

1 Answers   IBM,

which indicator is used for read?

0 Answers   IBM,

maximum number of subfiles that can be active for a single file is?

1 Answers   IBM,

how can you execute a command from within an rpg program without calling a clp program?

1 Answers   IBM,

How many Printer Files can Declare in a CL Program?

4 Answers  

how can I predict the performance of my cgis?

0 Answers   IBM,

how to write *pssr ?

0 Answers   IBM,

How do you read a subfile record which is in output mode?

3 Answers