Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 years ago.
Improve this question
we are trying to setup timeout limit for rsync data transfer, below is the command executing:
rsync --bwlimit=10 --timeout=10 -e ssh -avzr --delete /u01/Oracle/SyncScriptFolder/source xxxxx#xxxxxx:/u01/Oracle/SyncScriptFolder/source --stats -i
based on above command the rsync should stop the execution/transfer if it do not completes in 10 seconds, but it still continues to execute and donot terminates.
Terminate when no data transfer happens between source to destination. Check if there are any files are still updating in the source system.
Check the below bold text from the documentation,
--timeout=TIMEOUT
This option allows you to set a maximum I/O timeout in seconds. If no data is transferred for the specified time then rsync will exit. The
default is 0, which means no timeout.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
I'm beginner at networking, I notice that after configuring a network when I try to test the network connectivity with sending msg every time at the first attempt It always says "Failed" and then it says "successful" . what is the reason ?
when you try to ping the device, the first packet will fail. that time it will initiate the packet for the first time.
1). your MAC address table does not have destination Addresses.
2). Routing entry will not there.
after finding the destination of the device it will flow the packet without failure.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
I've been having problems getting a 5G only connection using waveshares https://www.waveshare.com/wiki/SIM8200EA-M2_5G_HAT for the raspberry pi.
Anyone know the the appropriate AT-commands ?
I am also using this 5G module but with Jetson Nano and Windows. To force 5G, run this command.
AT+CNMP=71 //if your module green led turns off using this command, run the following command
AT+CNMP= 39 //AT command for 4G (LTE)
I never get 5G on my module.
You can get information about which access technology that is used with the AT+CREG network registration command (AcT parameter) and you can control which to used with the AT+COPS command.
In your case, the manufacturer documentation is linked as "SIm8200 Series AT Command Manual" on the wiki page you linked, and that should be your primary source of information. The commands are standardized by 3GPP in 27.007 so you could have a look there as well.
PS Make sure you properly understand how to send and read and parse AT command lines and response lines.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I have rsync executed continuously between 2 systems which has the tcp connection getting interrupted due to known reasons.
In a rare case, it so happens that the entire rsync destination directory is deleted and the data gets synced to alternative location.
The rsync option used is "-rpt -iP --stats --inplace" I read about --inplace being inconsistent with interrupted connection.
-rpt -iP --stats --inplace >> FAILS
Need help to come up with safest approach to avoid inconsistencies in rsync in an environment with frequent connection disruption
If you need a consistent way to syncing whole directory use:
rsync -avz \
--partial \
--partial-dir=.rsync-partial/ \
--delay-updates \
--delete \
--stats \
...
Linux man says about --inplace:
This has several effects: (1) in-use binaries cannot be updated (either the OS will prevent this from happening, or binaries that attempt to swap-in their data will misbehave or crash), (2) the file's data will be in an inconsistent state during the transfer, (3) a file's data may be left in an inconsistent state after the transfer if the transfer is interrupted or if an update fails
So, --inplace can not be used for consistent syncing. Instead use delay-updates algorithm that guarantees that destination-dir changes will be implied only after successfully completed transfer.
Also you may decide to use -a instead of -rpt. -a param is equivalent to -rlptgoD and this is complete params set for consistent syncing. -vz params useful for verbose output and compression while transfer (reducing traffic).
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I'm trying to get the Postfix keep bounced (4.x.x dsn) messages only one day in deferred queue.
My postconf output
queue_run_delay = 300s
bounce_queue_lifetime = 0
maximal_queue_lifetime = 1d
maximal_backoff_time = 4000s
minimal_backoff_time = 3600s
mail_version = 3.1.0
But in mailq output I see messages sended 5 days ago. This means Postfix uses maximal_queue_lifetime default value 5d.
This is bounce example
dsn=4.7.1, status=deferred (host mx2.emailsrvr.com[146.20.161.2] said: 451 4.7.1 Received too many messages from a new or untrusted IP: 95.213.176.6 (Z27/4708082) (G28) (in reply to RCPT TO command))
What am I doing wrong?
Please restart your postfix server after updating any parameter
Systemctl restart postfix
Then try to run the following command
postqueue -f" or "postqueue -i <queue-id>"
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 4 years ago.
Improve this question
I use CentOS 7 with Apache server. The problem who command does not show clients connected with WinSCP. Can't understand why.
The problem who command does not show clients connected with WinSCP. Can't understand why.
Apparently, then, you are operating from a false premise. The who command does not promise to name everyone interacting with the system in any way whatever. Roughly speaking, who tells you about users who have an associated terminal, whether physical or virtual. Connecting via an scp client does not establish a login session or allocate a terminal for who to report on.
Contrast users who connect via ssh clients: these do get a terminal assigned to them, and they do show up in the output of a suitably-timed who command.