Skip to main content

call "system" with no I-O messages ?

  • August 31, 2021
  • 2 replies
  • 0 views

Alberto Rossi

Hello,

i use this command on SO linux : CALL "C$SYSTEM" USING "mv -f  /usr/dos/file1.txt  /usr/xxx/file2.txt" 

if file1.txt is locked system display "cannot mv file locked ... " 

how can i do to not display this message ? 

2 replies

Andreas Weinand
Forum|alt.badge.img+2
  • Participating Frequently
  • September 1, 2021

Hello,

i use this command on SO linux : CALL "C$SYSTEM" USING "mv -f  /usr/dos/file1.txt  /usr/xxx/file2.txt" 

if file1.txt is locked system display "cannot mv file locked ... " 

how can i do to not display this message ? 

Hi,

you could try something like this: "mv -f /usr/dos/file1.txt  /usr/xxx/file2.txt 2> /tmp/trash"


Alberto Rossi
  • Author
  • Participating Frequently
  • September 1, 2021

Hi,

you could try something like this: "mv -f /usr/dos/file1.txt  /usr/xxx/file2.txt 2> /tmp/trash"

ok thanks it works!