Shell Scripting

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.

  • 899 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.

  • 1498 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.

  • 1426 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..

  • 1147 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.

  • 1416 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

  • 2624 views
  • 2 answers
  • 4 votes

Latest Articles

Top 3D Photogrammetry Software

Photogrammetry is a process by which digital image of an object, person, or a landscape is developed. It helps in effortlessly creating a 3D image of an existing object. Photogrammetry software is also useful...

Beyond The Bet: Discovering Maryland’s Finest Online Casino Experiences

In the evolving online gambling landscape, Maryland has emerged as a beacon for enthusiasts seeking premium digital casino experiences. The state's regulatory framework and technological infrastructure provide a safe and dynamic environment for players to...

1xbet Bonuses And Promotions In India 2024

All new users from India can count on a generous 1xBet welcome bonus. You can get a 120% bonus of up to INR 33,000. It applies only to the first deposit, with a minimum...

Latest Blogs

Top 10 New Laptop Entrants That Shook The Public

The finest laptops are powerful enough to do your daily tasks, comfortable enough to use all day, and power-efficient enough to ensure you don't run out of battery power unexpectedly. Of course, all these...

10 Facts About The Dark Web

Before getting into knowing the facts, let’s have a brief about the Dark Web. The dark web is the data of the World Wide Web that is accessible only through special software, combinations, or...

Top 10 Latest Steam Cleaner Machines

While looking for a chemical-free way to clear and purify both durable and low grounds in your home, a steam cleaner is an excellent solution. With a spurt of superheated steam, this cleaning equipment...

Latest Tips

Top 10 Internet Monitoring Software

Internet monitoring software keeps a log of all internet activities. You can install this type of software on your computer remotely or by the administrator. An operating console controls this software. This type of...

Top 10 Best Partition Manager Software

A Hard Disk Drive is usually partitioned into various smaller drives for optimization. A partition manager helps make this process easier and more efficient. Here, let’s discuss the top 10 best partition manager software. 1....

Top 10 Best Online Music Production Software

Music production is the initial stage of any song. Music production can be done either in studios or at home using an online music production software. Here, let’s discuss the top 10 best online...