Shell Scripting
I have created shell script for checking different security settings in the RHEL5.6 servers. I am not an expert on this; so, how can I run it on a remote, to avoid the installation? Also, I want to do it on a lot of servers.
- 900 views
- 1 answers
- 0 votes
Please explain in detail what is this SHELL? Can we modify it? If so, how? How does the array differ from a bash shell? How to find the bash array length (number of elements) while at the same time running the script using the shell loop? I am looking forward for your useful explanation and the most reliable information. Thank you.
- 1270 views
- 1 answers
- 0 votes
I have a script which creates text file whose content is as below and this file gets automatically created by putting the output of some 'find' command into this text file :
/home/emilly
/home/emilly/abc.dat
/home/emilly/cds.txt
i want to add the piece of code in the same script which removes the first line from the file i.e. /home/emilly only.
Please suggest some useful command.
- 1499 views
- 2 answers
- 0 votes
As we know " who" command in unix gives output as:
abc pts/0 Aug 23 10:43 …
bcd pts/2 Aug 23 10:43 …
but i want to see the output as :
abc pts/0 Aug 23 10:43 …
bcd pts/2 Aug 23 10:43 …
Total number of users: 2
Please help me to get this output.
- 1427 views
- 1 answers
- 0 votes
I created a CSS script but how ever need to add a padding around the text such that the width changes on Mouse Over event.
i have created the JavaScript however am unsuccessful in creating the CSS file.
I have attached the script below.
Any help from your side would be appreciated..
- 1148 views
- 3 answers
- 1 votes
I am currently attempting to write a shell script to backup a MySQL database. The requirement I have is to retain only 3 days of backup files on the server. All I presently could do is to use mysqldump utility to write it to a file on the server. How do I implement a 3 day rolling backup?
- 2161 views
- 7 answers
- 11 votes
I want to insert no's into a txt file. I periodically get a lot of text files from a software which needs numbering. I want a script that can insert no's in from of each word in every line. Can anyone help me with a script to do it. Preferably a batch script.
- 1417 views
- 2 answers
- 2 votes
Hi All,
Test prints to be given to all printers in the building each day as a printer check for quality and if any issues.
I want some script that can run as a scheduled task and give a test print to all printers which team members in charge of the floor will just have to go to the printers and check.
This would be a very useful help if automated.
Thanks.
Rahman
- 2625 views
- 2 answers
- 4 votes