Next is executing fine on Python 2.5.2 : os.system( 'qgrep " D:\result.txt' ) But on Jython 2.5.1. it fails. This is due the < sign within the literal. Microsoft Windows XP [Version 5.1.2600]