Download files with specific date from SFTP server using PSFTP [closed] - sftp

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 8 years ago.
Improve this question
How can I download files of a specific time period through PSFTP?
When I do mget *.*, it downloads all the files into local folder. Now I’m not allowed to delete these files from SFTP server or move them. So every time I download, it has to download the complete list.
Is there a way where I can download only those files through mget which are a week old?

PSFTP does not support time-based file selection.
You can use scripting interface of WinSCP instead.
It supports time-constraints in file mask.
To download all week old (7 days old) files, use the following command:
get *<7D
See the guide for converting PSFTP script to WinSCP script.
For general introduction to WinSCP scripting see:
https://winscp.net/eng/docs/guide_automation
See also similar question WinSCP time based file download.
(I'm the author of WinSCP)

Related

Asterisk - create a new dialplan file [closed]

Closed. This question is not about programming or software development. 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 days ago.
Improve this question
While i was modifying the dial plan i noticed that in the same directory showed up a file named "1" with the extension .file that has the same content as the dial plan file i was modifying.
It also created a dial plan file with the extension .swp, and this file is deleted automatically after the pbx restart.
why is that? and is it safe to delete it?
i check on file manager and noticed that.
it might happen because of a network interruption at some time. but can i delete that file 1.file now?
Best regards
It is not releated to asterisk.
Asterisk is PBX and do not remove or rename any files in any folders except /var/spool/asterisk/
Most likely it is related to tool or editor you have used for edit that file.

Not able to unzip a password protected zip file [closed]

Closed. This question is not about programming or software development. 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 22 days ago.
Improve this question
I am trying to unzip a password-protected zip folder in Windows 11 OS. I have the password, however when I clicked 'Extract Al...' and confirmed the extract location, it didn't ask me for the password; instead, it showed the following error:
and this happened for every single file in the zipped folder.
What should I do?
try 7-zip. Or check the file if its corrupt via checksum, if possible.

How does UNIX handle a move of a file between two disk file systems? [closed]

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 have three directories on a UNIX box, as described below:
/tmp mapped on /dev/mapper/data-tmpVol1
/var mapped on /dev/mapper/data-varVol1
/opt mapped on /dev/mapper/data-optVol1
If I perform a move operation from /tmp to /var, will the UNIX do in fact a copy since there are two different file systems behind scene?
If I want an instant move, is it better to copy the file first in a /var/staging and perform a move from /var/staging to /var/input?
Context around the issue: I have a process which scans for files in /var/input, and I've seen cases when it picked up half-copied files (when moving directly from /tmp to /var/input).
Regards,
Cristi
When moving across file systems, you may like to create a file in the destination directory with a temporary filename, e.g. my-file.txt~. The scanning process must ignore such temporary filenames. When the file is complete you rename it to the final name. This way when the file (with a final name) exists it is complete, or it doesn't exist at all.

AutoIt exe gets killed by antivirus [closed]

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
I compiled an AutoIt script to an .exe file. When I give this program to another user, their antivirus detects it as a virus and kills it.
How can I avoid this?
How can I avoid killing AutoIT .exe by antivirus.
Assuming it does not classify as malicious:
White-list the executable (or folder containing it) in antivirus program.
File a false-positive report with concerning antivirus program's vendor.
Change antivirus software.
Resulting executable is the AutoIt script appended to an interpreter (no actual compiling). Incompetent vendors flag the interpreter instead of the script. False-positive reports usually solve this (until that vendor flags the next malicious AutoIt script, hence #3).

How do I access data from my personal computer on my AMI instance running RStudio server [closed]

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 9 years ago.
Improve this question
I have recently set up RStudio on an AMI ec2 instance using the process generously laid out by Louis Aslet from his website. But in an embarrassing turn of events I can't access the data I need because it resides on my personal computer. I am new to cloud computing and have 0 functional knowledge of Linux, but I do know SQL, and R well. Any help or suggestions would be greatly appreciated.
Have you tried the "Upload" button in the "Files" window of Rstudio?
use scp in terminal.
To put files from your remote server
Example: if the files are located locally in ~/mylocalfolder and you want to put them in /home/rstudio/mydata you would execute in terminal:
scp ~/mylocalfolder/*.csv ubuntu#<your address>:/home/rstudio/myData/
Note that if you want to access them under a different user, eg, rstudio, you need to change owners on the files. Use chown
To grab data from your remote server
Example: if the files are located on /home/rstudio/mydata and you want to put them locally in ~/mylocalfolder you would use
scp ubuntu#<your address>:/home/rstudio/myData*.Rda ~/mylocalfolder
I use the RStudio AMI all the time and what works for me is to use Dropbox. I can't remember exactly how I did it but I think I may have started the shell from within RStudio and installed Dropbox from the command line.
This link has a little more info:
http://www.louisaslett.com/RStudio_AMI/#comment-1041983219

Resources