INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

How to truncate text or command in inverted commas

How to truncate text or command in inverted commas

How to truncate text or command in inverted commas

(OP)
Hi all
I am calling tecplot from fortan and want the following command to be in standerd 72 columns. How can i write it in two or three lines.
Thanks.
call execute_command_line &
('C:\"Program Files (x86)"\Tecplot\"Tec360 2011"\bin\tec360.exe -b -p "E:\ibm4 istjune2014\DragCal1.mcr"', &
exitstat = i, wait = .True.)

RE: How to truncate text or command in inverted commas

Minor point - the exe string doesn't need that many quotes

It really depends on which compiler you are using

1) Some compilers will allow a different width. For instance, in F77 mode, the intel compiler will allow 72, 80 or 132 line width
2) If you are using F90 and above, there is no need to truncate to 72 characters unless that is the programming standard. If it is, you really ought to get it changed to a bigger number. Once types, indentation and OO kick in, the names of nested member variables will easily push it over the 72 character limit.
3) You could use concatenation

CODE

call execute_command_line (&
    '"C:\Program Files (x86)\Tecplot\Tec360 2011\bin\tec360.exe" ' // &
    '-b -p "E:\ibm4 istjune2014\DragCal1.mcr"', &
    exitstat = i, wait = .True.) 

RE: How to truncate text or command in inverted commas

(OP)
Thanks . I was so locked on to the format that i was missing the correct path of the mcr file which was actually wrong.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close