in reply to to print a system command

Hi oikool

If you need to use the double quote inside the string, you can use the backslash character.

system("date -s \"2 June 2010 18:00:00\"");

The single quote can be used without a backslash.


All is well

Replies are listed 'Best First'.
Re^2: to print a system command
by johngg (Canon) on Feb 12, 2014 at 15:36 UTC

    Better still, use a quoting construct.

    system qq{date -s "2 June 2013 18:00:00"};

    Cheers,

    JohnGG