Skip to content Skip to sidebar Skip to footer
Showing posts with the label Shell

How To Exit Out Of The Shell Script With Non Zero Status If The Files Are Missing In Both The Machines?

I am running my below shell script from machineA which is copying the files from machineB and machi… Read more How To Exit Out Of The Shell Script With Non Zero Status If The Files Are Missing In Both The Machines?

Difference Between Whole String Command And List Of Strings In Popen

I found most of the programmers suggest use list of strings to represent the command in popen. Howe… Read more Difference Between Whole String Command And List Of Strings In Popen

How To Execute A Nautilus Script Written In Python Inside A Gnome-terminal Window That Stays Open?

Lets say I want to execute a simple Python script from Nautilus, the default file manager of GNOME:… Read more How To Execute A Nautilus Script Written In Python Inside A Gnome-terminal Window That Stays Open?

Python - Clearing The Terminal Screen More Elegantly

I know you can clear the shell by executing clear using os.system, but this way seems quite messy t… Read more Python - Clearing The Terminal Screen More Elegantly

How To Export All Hive Databases And Their Tables To A Csv Or Txt Fiile

I am trying to output all tables in a database to an csv or text file. I can output all the databas… Read more How To Export All Hive Databases And Their Tables To A Csv Or Txt Fiile

Python: Display Elapsed Time On Shell

When I run my Python script, there is some function that takes up to a few minutes to complete, so … Read more Python: Display Elapsed Time On Shell