-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2/3/2014 3:35 AM, Sagar Shedge wrote: > Respected Sir/Mam, > > I want to make paritition creation using automate script. This > script should avoid interaction and respond all question for parted > command. Previous there will be msdos type partition table. > > My command are as follows :- 1. parted /dev/sdb mklabel gpt 2. > parted /dev/sdb mkpart logical 7168s 5638312959s 3. parted /dev/sda > name 1 TEMP-1
Use -s and put the commands on the command line instead of trying to feed them to stdin. Also there is no such thing as a logical partition with gpt. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (MingW32) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBAgAGBQJS+Ue0AAoJEI5FoCIzSKrww1IIAIKyZFUGhvd1nSY4DzTFyUOF mLiMq8ikQiqt0KUIYBabqHXqf+dHCcIiPfTHonbRjbGp+zFATj15RXBO3cTnBPhc iUR6TXRcNvmHvarfJY7ceMf0nX2DwDkRD9NmHd85wkrFpEO58AKEgMeslfM0Q6yc YolyXOCpX7eDvwwKh46/wfyI+FHp0mxRjPlWK584OWAsdCBo7NJ2Wn28i1MJsHlH yxasf8l00sVQ5H0FJTRNcmAcUuf2GeN4jQNgoBw0C4mDqBd6MTy+2O1zPiBp/392 lErCrTj0eGGqUiNLR3OkY5qhPf9LjSxZzS/1/FBf3DBtFHUOMn+rTzDyP4BtUQ8= =SWv5 -----END PGP SIGNATURE-----