Write a shell script to save the output of 'ls -ltr' every five minutes and after every hour it should print which all files are changed/modified/created.
In shell scripting How to indentify that the previous command was run successfully?
Latest Answer: If you want to check that your script has successfully ran. For this you have to do error handling for each command by displaying echo $?"?" is a inbuilt variable in Shell Scripting, the value for this is assinged by shell after execution of ...
How will you write a shell script to connect to SQL database?
Latest Answer: 1> #!/bin/ksh
2>
3> sqlplus /nolog < /dev/null
4>
5> connect USER/PASSWORD@DATABASENAME
6>
7> WHENEVER SQLERROR EXIT 5
8> WHENEVER OSERROR EXIT 10
9>
10> @ONE.sql
11>
----------------------------------------------
given ...
What does UID and GID signify?
Latest Answer: UID - User idGID - Group idWe can find out using sample command fire @ $ promoit "id" you will user id & group id.e. g step 1 : $ id ---> O/p get display immediately uid=232(vijay) gid=1(staff)This is actually string in the /etc/password ...
What are the different security mechanisms available in UNIX?
Latest Answer: Unix is having 3 ways of Security Mechanism:1. By granting or revoking File permissions. Owner or Admin can change permissions to be given to group or others by using chmod command in Unix.2. Login is restricted using login credetials ( User name and ...
What are the different types of shells available in UNIX?
Latest Answer: bourne (sh)c shell (csh)korn (ksh)bourne again shell (bash)TC shell (tcsh) ...
how many users have logged in and logged out in last five or 10 minutes
Latest Answer: By writing "who -Hu" you get following details o/pName Line Time Activity PID Hostname ...
nishanth.sed1h2,10{H;g}$q1,9dNDinput_fileaabbccddeeffgghhiijjkkllmmscriptsed -f nishanth.sed input_file
You have current directory containing set of directories which contain files.One file can reside in many directories.Write script which returns number of unique file names inall the subdirectories of
Latest Answer: set -x
input_string=$1
if [ -z "$input_string" ] ; then
echo "Please enter a Text along with the script namen"
exit
fi
reversed_string=$(rev $input-string)
if [ "$input_string" -eq "$reverse_string" ] ; ...
Latest Answer: Make provides most help when the program consists of many component files. As the number of files in the program increases so to does the compile time, complexity of compilation command and the likelihood of human error when entering command lines, i.e. ...
View page [1] 2 3 4 5 Next >>

Go Top