(ERROR)ls -la --full-time

Advertisement

Lucholp
Guest

(ERROR)ls -la --full-time

El comando 'ls -la --full-time'
ha fallado. Ha devuelto el código de error 1 y ls: unrecognized option `--full-time'
BusyBox v1.2.1 (2008.04.29-16:34+0000) multi-call binary

Usage: ls [-1AacCdeFilnpLRrSsTtuvwxXhk] [filenames...]
como mensaje de error.

Reply with quote

Advertisement

ROCKYS08
Guest

QUESTION

HI !!!
1) How I check if a file to be transferred already was sent ?
2) How I check if file is shipping and get everything ?
3) How can I send a message to the ftp server ?

Thanks !!!

Reply with quote

ROCKYS08
Guest

Script

This is my script !!!
@echo off
"C:\SICAES\BACKUP\DLL\WinSCP\WinSCP.com" ^
  /log="C:\SICAES\BACKUP\DLL\WinSCP\WinSCP.log" /ini=nul ^
  /command ^
     "open ftp://SEVE:SEVE@seve.ddns.net/"%1"/" ^
      "put D:\SICAESDB\BACKUP\DATOS\"%2 ^
     "exit"
 
set WINSCP_RESULT=%ERRORLEVEL%
if %WINSCP_RESULT% equ 0 (
  echo Success
) else (
  echo Error
)
 
 exit /b %WINSCP_RESULT%

PLEASE ... HELP ME !!!

Where and as locate those commands ... ls -la ... etc and ERROR and MSG ???

THANKS !!!

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
41,517
Location:
Prague, Czechia

Re: QUESTION

ROCKYS08 wrote:

1) How I check if a file to be transferred already was sent ?
It's sent when the put command finishes or when a whole script finishes.

2) How I check if file is shipping and get everything ?
What does it mean "file is shipping"?

3) How can I send a message to the ftp server ?
What message?

Reply with quote

Advertisement

ROCKYS08
Guest

QUESTION

1) How I check if a file to be transferred already was sent ?

It's sent when the put command finishes or when a whole script finishes. ... BOTH CASES

Quote:
2) How I check if file is shipping and get everything ? ... Transferred or Send

What does it mean "file is shipping"?

Quote:
3) How can I send a message to the ftp server ?

What message? ... I end the process good

thanks

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
41,517
Location:
Prague, Czechia

Re: QUESTION

ROCKYS08 wrote:

1) How I check if a file to be transferred already was sent ?

It's sent when the put command finishes or when a whole script finishes. ... BOTH CASES
That was not a question. That was a statement. A transfer is complete once the put command finishes. What do you want to check?

Quote:
2) How I check if file is shipping and get everything ? ... Transferred or Send

What does it mean "file is shipping"?
Sorry, can you be more specific? What's the difference between 1) and 2)?

Quote:
3) How can I send a message to the ftp server ?

What message? ... I end the process good
Again, this is quite vague. There's no way to send a "message" to an FTP server. If the FTP server expects some kind of indication about completed transfer, it has to have it's specific and defined way to do so. We cannot know that. Ask your server administrator.

You may want to read https://winscp.net/eng/docs/script_locking_files_while_uploading

Reply with quote

Advertisement

You can post new topics in this forum