The linux-scripting tag has no wiki summary.
1
vote
3answers
106 views
append to end of line sed / awk
This is probably easy and something is not clicking for me and my lack of coffee right now.
I have a file with multiple lines that begin with a tab then the word GROUP something {
Some of these lines ...
0
votes
1answer
90 views
mail to alert when process start or stop
I have a requirement to raise alert when a particular process(suppose abc) start or stop. One of idea is to write a script that monitor process , Can you suggest any better idea. I can't install any ...
1
vote
1answer
66 views
$* vs $@ positional variable in linux
What is difference between $* and $@ positional variable in linux. I read somewhere using $* is is security risk. Is it true.
0
votes
1answer
36 views
best practice for similar linked tasks?
I'm setting up a server for a small office, that is accessable from the internet. Since our ISP has a transparent proxy, most dynamic dns services fail, other than dyndns (who isn't our provider) so ...
1
vote
1answer
275 views
Linux / Sendmail one liner having trouble with large directories
For whatever reason, spammers found a way to relay mail through a side-system. The exploit has already been addressed.
The problem is that I had massive amount of emails in my /var/spool/mqueue ...
10
votes
4answers
3k views
Best book for learning linux shell scripting?
I normally works on Windows machines but on some occasions I do switch to development on linux. And my most recent project will be written entirely on a certain linix platforms (not the standard ...
0
votes
2answers
236 views
Safe to run backup script as root? or other way to aproach privileges?
I'm writing a backup script in BASH on a linux machine (gentoo)
The script will backup all folders in a certain directory.
The folders will have varying privileges and belong to different users and ...
2
votes
8answers
677 views
Alternative Linux Detection Methods To Detect A Compromised Host
This is a rewrite of my previous post as it was not entirely clear what I was trying to achieve. Hopefully this will make more sense :)
In a nutshell what I am looking for is alternative methods to ...
3
votes
5answers
866 views
How to 'echo “” > x' on multiple files
What is the best way how to empty a bunch of files in bash? As far I've been doing this
echo "" > development.log
echo "" > production.log
I don't really want to delete those files, so rm is ...