{"id":14159,"date":"2018-04-16T20:06:18","date_gmt":"2018-04-17T00:06:18","guid":{"rendered":"http:\/\/bangla.salearningschool.com\/recent-posts\/?p=14159"},"modified":"2018-04-16T20:06:18","modified_gmt":"2018-04-17T00:06:18","slug":"%e0%a7%a9%e0%a7%a6-%e0%a6%b8%e0%a7%87%e0%a6%95%e0%a7%87%e0%a6%a8%e0%a7%8d%e0%a6%a1-%e0%a6%aa%e0%a6%b0-%e0%a6%aa%e0%a6%b0-%e0%a6%af%e0%a7%87-%e0%a6%b8%e0%a6%ae%e0%a6%b8%e0%a7%8d%e0%a6%a4-%e0%a6%b6","status":"publish","type":"post","link":"http:\/\/bangla.sitestree.com\/?p=14159","title":{"rendered":"\u09e9\u09e6 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1 \u09aa\u09b0 \u09aa\u09b0 \u09af\u09c7 \u09b8\u09ae\u09b8\u09cd\u09a4 \u09b6\u09c7\u09b2 \u09b0\u09be\u09a8 \u0995\u09b0\u099b\u09c7 \u09a4\u09be\u09a6\u09c7\u09b0 \u09a1\u09be\u099f\u09be \u098f\u0995\u099f\u09be \u09b2\u0997 \u09ab\u09be\u0987\u09b2 \u098f \u09b8\u09c7\u09ad \u0995\u09b0\u09a4\u09c7 \u09b9\u09ac\u09c7"},"content":{"rendered":"<p>#!\/bin\/sh<\/p>\n<p>#find all currently running shells  and create in full listing form for them . Log the data into a file in every 30 secs<br \/>\n# -e means currentl running<br \/>\n# -f means full format output<br \/>\n# sleep takes parameters in seconds<\/p>\n<p>ps -ef | grep shell >> process.log<br \/>\nsleep 30<\/p>\n<p>ps -ef | grep shell >> process.log<br \/>\nsleep 30<\/p>\n<p>ps -ef | grep shell >> process.log<br \/>\nsleep 30<\/p>\n","protected":false},"excerpt":{"rendered":"<p>#!\/bin\/sh #find all currently running shells and create in full listing form for them . Log the data into a file in every 30 secs # -e means currentl running # -f means full format output # sleep takes parameters in seconds ps -ef | grep shell >> process.log sleep 30 ps -ef | grep &hellip; <\/p>\n<p><a class=\"more-link btn\" href=\"http:\/\/bangla.sitestree.com\/?p=14159\">Continue reading<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1888],"tags":[],"class_list":["post-14159","post","type-post","status-publish","format-standard","hentry","category---shell-programming","item-wrap"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":65712,"url":"http:\/\/bangla.sitestree.com\/?p=65712","url_meta":{"origin":14159,"position":0},"title":"Log currently running shell processes into a file in every 30 seconds. #Linux\/Unix: Shell Programming &#8211; 001","author":"Author-Check- Article-or-Video","date":"July 12, 2021","format":false,"excerpt":"#!\/bin\/sh #find all currently running shells and create in full listing form for them . Log the data into a file in every 30 secs # -e means currentl running # -f means full format output # sleep takes parameters in seconds ps -ef | grep shell >> process.log sleep\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":14136,"url":"http:\/\/bangla.sitestree.com\/?p=14136","url_meta":{"origin":14159,"position":1},"title":"\u098f\u0995\u099f\u09bf \u09ac\u09c7\u09b8\u09bf\u0995 \u09b6\u09c7\u09b2 \u09aa\u09cd\u09b0\u09cb\u0997\u09cd\u09b0\u09be\u09ae","author":"Sayed","date":"April 15, 2018","format":false,"excerpt":"#!\/bin\/sh #if enabled - will spit out the script to the screen #set -v #clear the screen clear echo \"SCRIPT BEGINS\" #shows current login name echo \"Hello $LOGNAME\" #shows current date in the same line echo \"Todays date is: \\c\" date +%m\/%d\/%y #shows current time in the same line echo\u2026","rel":"","context":"In &quot;\u09b6\u09c7\u09b2 \u09aa\u09cd\u09b0\u09cb\u0997\u09cd\u09b0\u09be\u09ae\u09bf\u0982 - Shell Programming&quot;","block_context":{"text":"\u09b6\u09c7\u09b2 \u09aa\u09cd\u09b0\u09cb\u0997\u09cd\u09b0\u09be\u09ae\u09bf\u0982 - Shell Programming","link":"http:\/\/bangla.sitestree.com\/?cat=1888"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":14173,"url":"http:\/\/bangla.sitestree.com\/?p=14173","url_meta":{"origin":14159,"position":2},"title":"\u09b6\u09c7\u09b2 \u09aa\u09cd\u09b0\u09cb\u0997\u09cd\u09b0\u09be\u09ae\u09bf\u0982 while \u09b2\u09c1\u09aa \u098f\u09b0 \u0989\u09a6\u09be\u09b9\u09b0\u09a3 \u0964 \u098f\u0995\u099f\u09bf \u099a\u09be\u09b0\u09cd\u099f \u09aa\u09cd\u09b0\u09a6\u09b0\u09cd\u09b6\u09a8 \u0995\u09b0\u09c1\u09a8","author":"Sayed","date":"April 16, 2018","format":false,"excerpt":"Example Output bash-3.2$ .\/while-loop-example.sh Enter your Number 10 10 * 1 = 10 10 * 2 = 20 10 * 3 = 30 10 * 4 = 40 10 * 5 = 50 10 * 6 = 60 10 * 7 = 70 10 * 8 = 80 10 *\u2026","rel":"","context":"In &quot;\u09b6\u09c7\u09b2 \u09aa\u09cd\u09b0\u09cb\u0997\u09cd\u09b0\u09be\u09ae\u09bf\u0982 - Shell Programming&quot;","block_context":{"text":"\u09b6\u09c7\u09b2 \u09aa\u09cd\u09b0\u09cb\u0997\u09cd\u09b0\u09be\u09ae\u09bf\u0982 - Shell Programming","link":"http:\/\/bangla.sitestree.com\/?cat=1888"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":14152,"url":"http:\/\/bangla.sitestree.com\/?p=14152","url_meta":{"origin":14159,"position":3},"title":"\u09b6\u09c7\u09b2 \u09aa\u09cd\u09b0\u09cb\u0997\u09cd\u09b0\u09be\u09ae\u09bf\u0982 \u098f for \u09b2\u09c1\u09aa \u098f\u09ac\u0982 \u09ab\u09be\u0982\u09b6\u09a8 \u098f\u09b0 \u09ac\u09cd\u09af\u09ac\u09b9\u09be\u09b0\u0964 Use of For Loop and Function in Shell Programming","author":"Sayed","date":"April 15, 2018","format":false,"excerpt":"bash-3.2$ cat multiplication.sh #!\/bin\/bash # Example use of function\/method declaration in Shell Programming # Example use of for loop #a function that will multiply 1 to 10 with 5 multiplication() { x=5 for i in {1..10} do echo $i echo \"the multiplication result is:\" $(($i*$x)) done } echo \"Print 1\u2026","rel":"","context":"In &quot;\u09b6\u09c7\u09b2 \u09aa\u09cd\u09b0\u09cb\u0997\u09cd\u09b0\u09be\u09ae\u09bf\u0982 - Shell Programming&quot;","block_context":{"text":"\u09b6\u09c7\u09b2 \u09aa\u09cd\u09b0\u09cb\u0997\u09cd\u09b0\u09be\u09ae\u09bf\u0982 - Shell Programming","link":"http:\/\/bangla.sitestree.com\/?cat=1888"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":14036,"url":"http:\/\/bangla.sitestree.com\/?p=14036","url_meta":{"origin":14159,"position":4},"title":"Users and Groups management in Linux (Redhat\/CentOS\/Fedora)","author":"Sayed","date":"December 25, 2017","format":false,"excerpt":"Users and Groups management in Linux (Redhat\/CentOS\/Fedora) Target Audience: Technical people who knew or already know (to some extent) - just wanna review Yes, from my history 622 echo \"dec 25th, 2017 - sayed\" \u00a0 User and password related files 623 cat \/etc\/passwd 624 cat \/etc\/shadow 625 cat \/etc\/group 626\u2026","rel":"","context":"In &quot;\u09b2\u09bf\u09a8\u09be\u0995\u09cd\u09b8 \u098f\u09ac\u0982 \u0989\u09a8\u09bf\u0995\u09cd\u09b8 \u0964 Linux and Unix&quot;","block_context":{"text":"\u09b2\u09bf\u09a8\u09be\u0995\u09cd\u09b8 \u098f\u09ac\u0982 \u0989\u09a8\u09bf\u0995\u09cd\u09b8 \u0964 Linux and Unix","link":"http:\/\/bangla.sitestree.com\/?cat=1231"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":14169,"url":"http:\/\/bangla.sitestree.com\/?p=14169","url_meta":{"origin":14159,"position":5},"title":"\u09b6\u09c7\u09b2 \u09aa\u09cd\u09b0\u09cb\u0997\u09cd\u09b0\u09be\u09ae\u09bf\u0982 \u098f if-then-else \u098f\u09b0 \u0989\u09a6\u09be\u09b9\u09b0\u09a3","author":"Sayed","date":"April 16, 2018","format":false,"excerpt":"#!\/bin\/sh #If then else example #if elif else NOF=5 if [ $NOF -eq 27 ] then echo \"No of files and directories = 27\" elif [ $NOF -gt 27 ] then echo \"No of files are dir are greator than 27\" else echo \"No of files and directories are less\u2026","rel":"","context":"In &quot;\u09b6\u09c7\u09b2 \u09aa\u09cd\u09b0\u09cb\u0997\u09cd\u09b0\u09be\u09ae\u09bf\u0982 - Shell Programming&quot;","block_context":{"text":"\u09b6\u09c7\u09b2 \u09aa\u09cd\u09b0\u09cb\u0997\u09cd\u09b0\u09be\u09ae\u09bf\u0982 - Shell Programming","link":"http:\/\/bangla.sitestree.com\/?cat=1888"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/14159","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=14159"}],"version-history":[{"count":1,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/14159\/revisions"}],"predecessor-version":[{"id":14160,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/14159\/revisions\/14160"}],"wp:attachment":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=14159"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=14159"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=14159"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}