Tags » Bash Script

Server port is already used issue - Raspberry pi 3 startup

I have done IoT project with Raspberry pi (Raspberry pi 3). Server was built with node (express/SQLite3). I wanted to run my server on startup and I had to do that by using bash script. 215 more words

Internship

Portscan Using Simple Bash Script

Simple bash script to scan open port of any machine in network without any tool like nmap or any other. 55 more words

Linux

Summarize disk usage in unix

If you run out of space on a remote machine, or even your own Unix based PC, you can investigate where your disk usage problems are coming from with… 56 more words

Scripts

Copy to multiple directories in Unix

You have a large file that needs to be copied to many directories. Rather than repeating:

cp yourfile.txt /your/dir/

Do:

echo /dir/one/ /dir/two/ /dir/three/ | xargs -n 1 cp yourfile.txt
Scripts

Cancel all jobs with Torque

If you use Torque to submit jobs to a cluster, you will need to cancel them sometimes. For a while I was doing:

qdel <job number>
… 26 more words
Scripts