Ganesh Pal writes:
> How will I format number to strings using .format ??
To make best use of ‘str.format’, read its documentation thoroughly
https://docs.python.org/3/library/string.html#formatstrings>.
To format numbers to strings, you choose which representation you want;
e.g. “decimal inte
>
>
>
> cmd = "run_parallel -za" + str(number) + \
> > ... " -s" + " \'daemon -cf xyz; sleep 1\'"
>
> cmd = "run_parallel -za{} -s 'daemon -cf xyz; sleep 1'".format(number)
>
>
How will I format number to strings using .format ??
Example
>>> str(num)
'100'
>>> cmd = "run_parallel -z
On Mon, Jul 11, 2016 at 4:35 AM, Ganesh Pal wrote:
> 'run_parallel -za1 -s 'daemon -cf xyz; sleep 1'
>
> We have a sleep 1 that's run run as part of abovry shell command . It
> looks ok but is there a way to use something alternative to sleep was my
> question. I guess the answer is " no" , bec
On Jul 10, 2016 11:14 PM, "Ian Kelly" wrote:
> They're correct, but using them before single quotes in a string
> delimited by double quotes is unnecessary.
Thanks .
> > 3. Iam running sleep command on the cluster i.e , how could I make it
> > look Python or its fine to have sleep ?
>
> I don't
On Sun, Jul 10, 2016 at 9:19 AM, Ganesh Pal wrote:
> Hello Team,
>
> I am on python 2.7 and Linux , I want to form the below sample
> command so that I could run it on the shell.
>
> Command is --> run_parallel -za1 -s 'daemon -cf xyz; sleep 1'
>
> Here is how I formed the command and it seems
Hello Team,
I am on python 2.7 and Linux , I want to form the below sample
command so that I could run it on the shell.
Command is --> run_parallel -za1 -s 'daemon -cf xyz; sleep 1'
Here is how I formed the command and it seems to look fine and work
fine , but I think it could still be better