Hi SamBomes,
I got it. In the [[ $2 = "---" ]] && return, we only need one square brackets like this [ $2 = "---" ]
Hope this will help dbadmin also.
Thanks anyway.
onceagain
Hi SamBones,
Thanks a lot for the script. I tried it and is working OK if I have all permissions assigned for a file (for owner, group and others) but when there is no permission for any of these, then the script fails, because the restore_rpt_perms.sh file will have entries like this
chmod...
Hi,
I need to write a shell script for changing the permissions for certain files in our system (example all files with extension .rpt). The script has to generate a backup script which will have chmod command to change the permissions back to the original. I have written upto a point that I...
Hi,
The username/password combination doesn't work in my laptop when it is connected to the network (Home-LAN). When I remove the network connection, I can login succesfully. When I try to login with the laptop in network, Error message popups saying, the domain server cannot validate the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.