MEL noob question

MEL noob question

Anonymous
Not applicable
541 Views
2 Replies
Message 1 of 3

MEL noob question

Anonymous
Not applicable

I'm a mel newbie.

 

This returns the current filename:

file -q -sn -shn;

 

 

but I don't understand why this doesn't work:

string $fileName = file -q -sn -shn;

0 Likes
Accepted solutions (1)
542 Views
2 Replies
Replies (2)
Message 2 of 3

mspeer
Consultant
Consultant
Accepted solution

Hi

 

You need the wrap the command inside `...`

 

 

string $fileName = `file -q -sn -shn`;

 

0 Likes
Message 3 of 3

Anonymous
Not applicable

Thank you very much. I tried the single quote character ' instead of    ` 

0 Likes