Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I meet a big problem with the system command call.

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I have a file list in a ascii file,and I need to copy them to another place,I can do it with the backup command,but I can't do it with awk system call.Even I can't run "system(tail $1);","system(ls $1);" and so on,with the following error message:

sh: /db2olap/app/Õã½­Ñ̲Ý/Sellstat/Sellstat.tct: 0403-006 Execute permission denied.

How can I get what I want with the system command call? Thanks.
 
Quote the system commands and have a space between the awk argument.

system( "tail " $1)
system( "ls " $1 ) Cheers,
ND [smile]

bigoldbulldog@hotmail.com
 
Oh,It's so easy but a trick I can't get from IBM's documents.Really thanks.
Hope you can help me more later.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top