Skip to content
Daily IT Help

My daily IT journal

  • Programming
  • Monitoring
  • Azure
  • Splunk
  • About me
  • Programming
  • Monitoring
  • Azure
  • Splunk
  • About me
  • General - Linux

    Linux: cronjob

    October 13, 2019 - By itdoctor

    When you setup a cronjob file (/etc/cron.d/filename) , the file should include the path below: PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/root/bin this is because if…

    Read More
  • General - Linux

    Linux: send all error to another program (PIPE)

    October 8, 2019 - By itdoctor

    You can use the option : 2>&1 for this purpose. /mycommand.sh 2>&1 | mydescommand.sh

    Read More
  • General - Programming

    PHP : HTTP Post with Curl

    October 8, 2019 - By itdoctor

    A sample function to use curl post data. $data=array() $data=array(); $data[“field1″]=”hello world”; $data[“user”]=”hello user”; curl_post($url,$data) function curl_post($url,$fields) { //open connection…

    Read More
  • Linux

    Linux : Delete files older than number of days

    September 30, 2019 - By itdoctor

    We first need to list files that are older than number of days (5) find /Data/foldername -name *.mp4 -type f…

    Read More
  • General

    Find the kerberos server for your domain

    September 25, 2019 - By itdoctor

    The service record for ldap and kerberos are used to identify LDAP and Kerberos server for a domain in Active…

    Read More
  • General

    Splunk – Custom Alert – Input Validation

    September 25, 2019 - By itdoctor

    I built a customize alert, and there are some required fields on the form. User must provide data for these…

    Read More
  • General

    Ubuntu: How to execute a command at start up?

    June 16, 2019 - By itdoctor

    There will come a time when you need to start some scripts at startup, but you don’t want to to…

    Read More
  • General

    php 7 – session_set_save_handler

    April 14, 2019 - By itdoctor

    session_set_save_handler(“open”, “close”, “read”, “write”, “destroy”, “gc”); function read($id) { //if we can’t find the data for this session, we must…

    Read More
  • General

    Apache: too many sending reply (W) – server is busy

    March 8, 2019 - By itdoctor

    This is mostly because the script is hang at some point , the server still keeps the connection, this will…

    Read More
  • Programming

    Python: paramiko – AuthenticationException: Authentication failed

    February 26, 2019 - By itdoctor

    Read More
 Older Posts
Newer Posts 

Categories

  • Apple
  • Azure
  • Database
  • General
  • Linux
  • Marketing
  • Monitoring
  • Networking
  • Phone
  • Programming
  • Splunk
  • Windows
Graceful Theme by Optima Themes