Author Archives: Ahmed Tawfik

Unknown's avatar

About Ahmed Tawfik

Cybersecurity Professional, Systems Engineer, OSS & Linux Geek

The sql_check_rw file contents in the last post

sqlplus -s “/ as sysdba” <<EOF set heading off feedback off termout off select OPEN_MODE from v\$database; exit EOF

Tagged | Leave a comment

Monitoring Oracle DB in a HACMP Active/Passive Cluster

The following script is one that I developed to be executed by HACMP every 10 seconds to make sure that the database is up and running: #!/usr/bin/bash DATE=`date +%d%m%y` # Record the time to add a time stamp to the … Continue reading

Tagged , , | Leave a comment

Remove the first character in a string in bash script

export variable= “anything_you_want” # populate the variable, this is just an example of course variable=$(echo ${variable:1}) # remove the first character in the variable echo $variable # show the new value of the variable to make sure the operation is … Continue reading

Tagged | Leave a comment

Import and Edit PDF Files For Free

I couldn’t believe myself at first, but it’s true!! I’ve been searching since a very long time ago for a decent (and free) PDF editor, especially on my Linux box (but it’s available for Windows and many other platforms as … Continue reading

Tagged , | Leave a comment

Allowing other system users to run commands as user "root" without having to authenticate as root

I have an application (created by IBM Linux team) that controls all the buttons on my thinkpad and shows the changes visually (raise/lower the speaker volume, increase/decrease brightness …etc). This application is called “tpb” and I found out that it … Continue reading

Tagged , | Leave a comment