Skip to content

Instantly share code, notes, and snippets.

@diggzhang
Last active March 9, 2018 09:40
Show Gist options
  • Save diggzhang/724da43102d37aa9c8e6cff10d661638 to your computer and use it in GitHub Desktop.
Save diggzhang/724da43102d37aa9c8e6cff10d661638 to your computer and use it in GitHub Desktop.
import os
import sys
print("Hello1")
os._exit(1)
print("Hello2")
#!/bin/bash
# set -e #"Exit immediately if a simple command exits with a non-zero status."
touch a.txt
echo "touch a.txt done"
python3 exit_python.py
mongodump --db orderEventsTest
i # Error here
for i in 1 2 3
do
echo "$i" >> a.txt
done
cat a.txt
echo "" > a.txt
echo "Hello World !"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment