Article 5K4J7 Bash script running multiple commands problem?

Bash script running multiple commands problem?

by
shams
from LinuxQuestions.org on (#5K4J7)
Hi,
This is a bash script:
Code:#!/bin/bash
for i in 1; do
set -e
cd /home/me/tmp/mail
python3 pop.py &&
./getmail.sh &&
python3 /home/me/tmp/mail/del.py
donerunning pop.py creates rc files for the getmail from mysql database, then getmail.sh retrieve my mails from all defferent acounts to /var/mail/me, these two codes are running ok, when the getmail.sh finished the del.py will delete all the getamil rc files, the problem is the above script didn't run the del.py and exiting, i also tried this code but it has the same problem didn't run the del.py:
Code:#!/bin/bash
set -e
cd /home/me/tmp/mail
python3 pop.py &&
./getmail.sh &&
python3 /home/me/tmp/mail/del.pylatest?d=yIl2AUoC8zA latest?i=7UDMWzOer3k:MPORQ_NdlTQ:F7zBnMy latest?i=7UDMWzOer3k:MPORQ_NdlTQ:V_sGLiP latest?d=qj6IDK7rITs latest?i=7UDMWzOer3k:MPORQ_NdlTQ:gIN9vFw7UDMWzOer3k
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments