Skip to content

ftp *.[cC][sS][vV] not working as intended on Windows

One of my client’s ftp server recently moved from Linux to Windows. Searching using *.[cC][sS][vV] looks for *.csv and *.CSV files as intended on Linux. But this doesn’t work on Windows. Is there a way to expand this correctly on Windows or perform a case-insensitive search on Windows ftp server? …

What is the difference between retq and ret?

Let’s consider the following program, which computes an unsigned square of the argument: This is properly compiled by as, but disassembles to Is there any difference between ret and retq? Answer In long (64-bit) mode, you return (ret) by popping a quadword address from the stack to %rip. In 32-bit mode,…

Error concatenating var in bash script

I have a bash script that searchs for password for unrar files. I would like to concatenate result and at the end of the script notify result of execution, but I don´t know why final_result var outputs “INIT-END”. Why does not concatenate in search_pass_and_unrar function? Thanks a lot, best regar…

Irregular result in zombie example

I have problems with understanding the behavior of this code: When running in a Unix shell I get this result: But sometimes its only giving me this result without any shell prompt: I know it can be solved with wait() function in parent process. But I like to know: Why is result irregular? Could someone please…

Azure VM Linux Ubuntu backup agent – Deployment failed

We have two Ubuntu (14.04) Linux server VMs on Azure hosting. Currently trying to setup the backup service within Azure for these machines. I have followed this guide and have the agent up and running. When running “waagent -version” in bash output shows: When then attempting to enable the backup …

UWSGI https configuration for ubuntu

I have django app that is running using the following uwsgi configuration in redhat 7.3: However, when I run it on Ubuntu 16.04.1 LTS, I got the following error: Does the error means that uwsgi fail to bind the port? Is there a special way of using “shared-socket” in ubuntu? I need to have this ru…

How to use mount command in fstab file

After creating /mnt/bucket folder which is to be used as a local mounting-point for Google Bucket: I can successfully mount it to mybucket Google Bucket by simply typing sudo mount followed by with all its endless arguments in Ubuntu terminal, like so: Since I am supplying mount command with the -o key_file=p…

Tar search results in .sh file

I have to tar a list of files, without path, that is a result of a find via sh (for crontab use). In ubuntu’s shell each command works fine but in .sh not. I tried with : And also with But both failed. May someone help? Alternatives ? Additional scenario info: /myfolder/ contains: one1.log one2.log one3…