Fortran output to the terminal

I'm new to f77 compiler. When I'm running a BIG program and want to use output to the terminal ( write(6) ) as a progress report it comes in portions of about 10000 symbols (inclusive spaces). In GNU g77 I used "call flush" function after some critical output. Here program crashes with "Segmentation fault" after executing flush.
Any hints?
PS I had to switch from g77 since it fails with VERY BIG clculations and is not supported by local admins.

Did you use
     call flush(6)
or
     call flush()
? The latter form would probably cause a
Segmentation Violation of the type you report.
You can always try compiling with "-Xlist" flag
to get a listing with potential problems called out.
In this case you might see
6 3 call flush()
7 ^
8 **** ERR #589: wrong number of arguments to "flush"
Anyway--flush is intended to work as you expect,
but Sun flush(3f) really needs the unit passed to it.
If that wasn't the problem, please ask again.

Similar Messages

  • LabVIEW 6.1 If For Loop count terminal is zero then value going through the loop is not passed on to the output of the loop

    Hello, one of our customers just encountered an execution error in a vi running under LabVIEW 6.1, which doesn't exist under LabVIEW 5.1 or 6.01. I have a simple vi that has two encapsulated For Loops. Two string arrays go in, one goes out of the outer loop. Inside the outer loop the first array is indexed. The string which results from this indexing is compared with all other strings from the second string array in the inner loop. If it matches one of the strings of the second array, it is not outputted, otherwise this string goes through the inner For Loop to the output of the inner loop and from there to the output of the outer loop. The count
    terminal of the outer/inner loop is connected to the Array Size of the first/second string array. If the second array is empty, that means that the element in test from the first arry cannot match anything from the second array, so the element in test is send to the output of the inner loop and from there to the output of the outer loop. This works fine in LabVIEW 5.1 and 6.01, but NOT in LabVIEW 6.1. In LabVIEW 6.1 the inner loop is never executed if the count value is zero (which is correct), but the data line running through the loop is not executed either, which is different to what LabVIEW 5.1 and 6.01 do. There, the input string is sent to the output of the inner loop correctly even if the loop counter is zero. The solution is easy - I just have to connect the output of the outer loop to the data line BEFORE it enters the inner loop. But: I don't know if this is a LabVIEW 6.1 bug or if it is supposed to be a feature, but it brings some incompatibility in programming between the
    different LabVIEW versions.
    Best regards,
    Gabsi

    Hi,
    When a for-loop runs zero times, all outputs are 'undefined' (and should
    be).
    Besides, how would LV know what the output of a not executed routine should
    be?
    It might be handled differently in LV5 and LV6, which is unfortunate. In
    both cases, the result is undefined.
    It's not a bug. It's just something that should be avoided in any LV
    version.
    > The solution is easy - I just have to connect the
    > output of the outer loop to the data line BEFORE it enters the inner
    > loop. But: I don't know if this is a LabVIEW 6.1 bug or if it is
    In some cases this does the trick. But if the data is changed in the inner
    loop, this will effect the results if the N is not zero.
    Technically, I think the output in this construction is also 'undefined'.
    But LV handles this as expected / desired.
    Another solution is to use a shift register. If N is zero, the input is
    directly passed through to the output.
    Regards,
    Wiebe.
    "Gabs" wrote in message
    news:[email protected]...
    > LabVIEW 6.1 If For Loop count terminal is zero then value going
    > through the loop is not passed on to the output of the loop
    >
    > Hello, one of our customers just encountered an execution error in a
    > vi running under LabVIEW 6.1, which doesn't exist under LabVIEW 5.1 or
    > 6.01. I have a simple vi that has two encapsulated For Loops. Two
    > string arrays go in, one goes out of the outer loop. Inside the outer
    > loop the first array is indexed. The string which results from this
    > indexing is compared with all other strings from the second string
    > array in the inner loop. If it matches one of the strings of the
    > second array, it is not outputted, otherwise this string goes through
    > the inner For Loop to the output of the inner loop and from there to
    > the output of the outer loop. The count terminal of the outer/inner
    > loop is connected to the Array Size of the first/second string array.
    > If the second array is empty, that means that the element in test from
    > the first arry cannot match anything from the second array, so the
    > element in test is send to the output of the inner loop and from there
    > to the output of the outer loop. This works fine in LabVIEW 5.1 and
    > 6.01, but NOT in LabVIEW 6.1. In LabVIEW 6.1 the inner loop is never
    > executed if the count value is zero (which is correct), but the data
    > line running through the loop is not executed either, which is
    > different to what LabVIEW 5.1 and 6.01 do. There, the input string is
    > sent to the output of the inner loop correctly even if the loop
    > counter is zero. The solution is easy - I just have to connect the
    > output of the outer loop to the data line BEFORE it enters the inner
    > loop. But: I don't know if this is a LabVIEW 6.1 bug or if it is
    > supposed to be a feature, but it brings some incompatibility in
    > programming between the different LabVIEW versions.
    > Best regards,
    > Gabsi

  • Saving the terminal output to a file using terminal 1.50(133)

    My friend is using a older MacBook and is trying to save all the output of the program they are running, but their version of terminal only saves the last 10000 lines. I was wondering would I use the "tee" or "script" command?

    Hi,
    Assuming you mean the program they are running is being run from the Terminal, then just do something like this:
    myterminalcommand > ~/Desktop/myoutputfile.txt 2>&1
    The 2>&1 at the end redirects messages sent to stderr to the same location as stdout so you should capture everything in the file.
    If you want to run the program multiple times, the '>' will overwrite the output file. To append to the same filename, use '>>' instead.

  • TS4225 I have just shifted to iOS 7 but i believe i lost the audio output through the earphone terminal. How do I make it work again?

    How do I make it work again? I tried with the apple earphones provided and the stereo jack in my car, both didn't seem to work. The thing is, if functioning normally, after I insert the earphone jack in the terminal, the sound from the speaker should disappear and be rerouted to the earphones, this didn't happen.
    Shall I reset my iphone?

    it's not ios7 it's not software it's a hardware issue
    it's this
    https://discussions.apple.com/thread/1343532
    just the opposite where rather then the switch being stuck in one way it's stuck in the other
    more hits
    https://www.google.dk/search#q=iphone+stuck+in+headphone+mode

  • Error message by periodic weekly: No output from the 1 file processed

    Hi there,
    since four weeks, I got a problem with the maintenance script periodic weekly. Up to December 22nd, the script did, what it should do: rebuilding the database of locate and whatis, rotating log-files. Since one week later, I got the error message: No output from the 1 file processed.
    Normally, I use Anacron to do the job. When I noticed the problem, I tried to start the script with Tinker Tool System getting the same result. Another try using the Terminal (sudo periodic weekly) also failed. The commands locate and whatis are working, locate.updatedb and makewhatis also. I'm running 10.4.8; in the past, I did not have such problems. Anyone with an idea or solution?
    Thanks
    Klaus
    MacBook Pro   Mac OS X (10.4.8)  

    Hi Gary,
    here is the output you were asking for:
    Last login: Thu Jan 25 20:03:55 on console
    Welcome to Darwin!
    DeepThought:~ dirk$ sudo /private/etc/periodic/weekly/500.weekly; echo $?
    Password:
    Sorry, try again.
    Password:
    Rebuilding locate database:
    Rebuilding whatis database:
    find: /usr/local/man: No such file or directory
    makewhatis: /usr/share/man/man1/fetchmailconf.1.gz: No such file or directory
    Rotating log files: ftp.log lpr.log mail.log netinfo.log ipfw.log ppp.log secure.log
    access_log error_log
    Running weekly.local:
    Rotating psync log files:/etc/weekly.local: line 17: syntax error near unexpected token `)'
    /etc/weekly.local: line 17: `if [ -f /var/run/syslog.pid ]; then kill -HUP 0 80 79 81 0cat /var/run/syslog.pid | head -1); fi'
    2
    DeepThought:~ dirk$ ls -loe /private/etc/periodic/weekly/500.weekly
    -r-xr-xr-x 1 root wheel - 2532 Jan 13 2006 /private/etc/periodic/weekly/500.weekly
    DeepThought:~ dirk$
    It seems, Rogers idea, PsynX respectively the deficient uninstalling by me is responsible for my problems, is correct. Should I remove the whole file weekly.local or should I only remove the content? I prefer removing the whole file, because it was created while installing PsyncX. The date of creation is the same as the date of installing the app (December 25).
    Klaus
    By the way: it seems to me, the solution of my problem is in sight. So I want to thank you all for the amazing aid I got from you!

  • How can I print to file (simple output) from the print dialog? Not PDF or PostScript

    Hello
    I do quite a bit of work in virtual terminal (SSH) and I tend to pull enormous amounts of data that need to be saved to a *.txt file. This needs to have ZERO formatting, as it is simply data extracted from a data base (CSV, tab delimited, etc). This information is then formatting through the use of other applications (excel, access, etc). By zero formatting i mean, no text wrap, nothing! It needs to be a text based pure database output.
    I cannot use Print to PDF
    I cannot use Print to PostScript
    both of these include formatting, and erroneous data that would require me many hours to clean up the data by hand. On a Windows based PC you can simply install a "Print to File" printer through your printer setup menu.
    I've spent many hours searching online and other seem to need this same exact type of output.
    The closest thing i've been able to do is create an automator file that upon printing converts the PDF into a text file. This doesn't work as it retains the formatting per the original PDF document. This also doesn't seem to help as some outputs are 30mb in size.
    If anybody could assist with this that would be awesome. Thanks!

    It looks as though you need a netgear router to use this and we have a btinternet router so it won't work
    The word is that this suggestion will work with any router.
    I did not see the brother printer listed.
    List of supported AirPrinters.
       http://support.apple.com/kb/HT4356
    printing to a non-airprinter from an iPad
    To print from the iPad, your going to have to install some more software:
    -- install a printer app on the ipad. many printer makers have iPad applications for their printers.  Look in the app store
    -- install enabling software on a computer which you have connected the printer
    For a comprehensive list of links, see Texas Mac Man list:
    https://discussions.apple.com/message/21291967#21291967
    iPad Print Applications supplied by printer manufactures -- usually free:
    Brother iPrint&Scan
        http://itunes.apple.com/us/app/brother-iprint-scan/id382775642
    Helper app -- /print n share
    Print directly to the widest range of network or WiFi printers available in any app. Alternatively print via your computer to ALL printers including USB & Bluetooth printers. View read and display large PDF, Office & iWork files. Easily transfer & store files from the Cloud or your computer.
    https://itunes.apple.com/us/app/print-n-share/id301656026?mt=8
    Software for your computer's printer:
    Mac and Windows
      FingerPrint
        http://reviews.cnet.com/8301-19512_7-57368414-233/fingerprint-turns-any-printer- into-an-airprint-printer/

  • Output of the concurrent program in PDF - Reg

    Hi All,
    I have a requirement wherein i have to get the output of the concurrent program as a pdf file.
    I'm using the report file (.rdf) as the executable.
    When I'm giving the output as PDF in program definition, it errors out.
    The report is very complex and using XML publisher for getting a PDF output will be tedious one.
    Any pointers or tutorials will be of great help.
    Regards,
    Mohan

    Hi,
    "Program was terminated by signal 11
    Concurrent Manager encountered an error while running Oracle*Report for your concurrent request ********.
    Review your concurrent request log and/or report output file for more detailed information."
    The error message was not specific and i could not make out what it is.Please make sure that the DISPLAY is set properly as per (Note: 377748.1 - Postscript And PDF Reports Complete With 'Program Was Terminated By Signal 11'). Also, verify the value of Tk2Motif*fontMapCs as per (Note: 396336.1 - PDF Reports Fail With Program Was Terminated By Signal 11). Make sure you bounce the CM each time you do any modification.
    And regarding XML, can i get the PDF output from the concurrent program itself without using the XML publisher,by setting the output style as PDF??????Yes you can, create the concurrent program using reports builder and register it in the application with a PDF output format. If your database characterset is UTF8, then I believe you need to use XML publisher.
    Regards,
    Hussein

  • How do I increase the width of the first column in the Terminal ls -l command?

    I am now running 10.9.x, but I've experienced the problem described in the question over the last several iterations of OS X.
    I use bash as my interactive shell. When I display the "ls -l" command in Terminal the output is often very difficult for me to scan, because the columns in which are displayed the several fields of the records for the listed files are misaligned (different left-hand first-letter starting points for left-aligned text-valued fields; different right-hand low-digit alignment of numerical fields).
    When I look more closely at the mess displayed in my Terminal window, it appears that the cause of the problem may be that no minimum width, or an inadequate minimum width, has somewhere been set or defined for the first column of each record, containing the file's "mode" string (permissions, etc.); for all records in which this string is of equal length, the succeeding columns for all fields in those records are themselves aligned.
    It has not always been thus for me in the Terminal with OS X, or else I might not dream that the world could be a better place in this one respect. But if I launch an interactive csh-shell instead of bash in Mavericks today, the columns of the ls -l command there align no better.
    I've found no help in the Unix man pages for the ls command. There is a COLUMNS environment  variable whose value is supposed to be used by the ls command to set the width of every column displayed, but this is not what I want to do, and in my shell "ls -l" seems to ignore the exported variable anyway.
    There is also an LS_COLWIDTHS environment variable that is described as setting column widths on a field-by-field basis, at least for some fields, but the the mode column is not included among those whose width is supposed to be adjustable, and my shell seems to ignore the value of this variable as well.
    I've looked in my rather simple ~/.profile and ~/.bashrc files for anything that I might plausibly suspect of producing or perpetuating this behavior, but there is nothing there. Any suggestions about how to remedy this problem?
    Randy Miller

    John,
    I would like you to perform a safe boot. On reboot, press and hold the shift key at the chime, until the grey horizontal bar appears. After you type in your password, press and hold the shift key again, then click the right arrow to login, and release the shift key when your desktop appears. Move the contents of your local ~/Library/Caches into the Trash. Reboot normally. Empty your Trash.
    Re-evaluate your Terminal behavior. If it now works ok, great. Otherwise, here are a sequence of screen shots of my Terminal preferences for comparison. I can use both Courier fonts without formatting issues. Click to enlarge. I use the free IR Black Terminal theme as a personal choice in OS X 10.9.4. In my ~/.bashrc file (triggered from ~/.bash_profile), I export TERM=xterm-256color, and invoke /usr/bin/tput init. Click on the following images to enlarge.

  • How to copy the linux command output to the clipboard xclip is not working?

    Friends,
    OS: OEL 5.5
    i want to copy the command output to the clipboard.
    so, which rpm i have to install?
    i tried with xclip rpm its not working...
    xclip /etc/sysctl.conf
    but its not working, not only the above command but all the commands of xclip is not working.
    so, can anybody suggest me a solution?
    thanks

    i have already tried that...
    below is thru the secureCRT terminal
    [root@rac1 /]# cat /etc/sysctl.conf | xclip
    Error: Can't open display: (null)below is directly from the os
    [root@rac1 ~]# vi tet
    [root@rac1 ~]# tail -100 /var/log/messages | xclip
    [root@rac1 ~]# vi test
    [root@rac1 ~]# cat /etc/sysctl.conf | xclip
    [root@rac1 ~]# vi test
    [root@rac1 ~]# echo 'hello' | xclip
    [root@rac1 ~]# vi testEdited by: OraDB on Aug 19, 2012 10:33 AM

  • How to reset the Terminal Count indicator on the PXI-6608

    Dear Community,
    Is there any way to reset the terminal count indicator on the PXI-6608? When I Use Get Attribute.vi I get the correct value the first time, but unfortunately (unlike DAQmx) reading the value doesn't reset it...
    I'd like to keep track of how many times it has rolled over. And I don't want to use another counter to do that because I'd like to keep them free for other things.
    Thanks!
    Cas
    Solved!
    Go to Solution.

    Traditional daq does not have a means to reset the terminal count indicator, as far as I know. One thing you might be able to do is change the "output mode" to "toggle" and then read the "output state" to determine rollovers by determining when the output state has changed during your application.
    I hope this helps!
    gus....

  • Pressing ^[ causes screen to pause redrawing the terminal, annoyingly

    I've come across an annoying behavior in GNU Screen. It's most prominent in vim: when I enter insert or command-line mode and press ^[ (escape), nothing happens for about .75 seconds, then the 'INSERT' indicator (or prompt) disappears. However, if I press a key during that interval, the change takes effect immediately. This annoyingness does not happen if I don't use screen.
    It seems ^[ causes screen to pause before redrawing the terminal. I haven't found any documentation on it though. Anyone have a solution?
    Clarification: This seems to happen with all command-line utilities in screen, not just vim.
    Might this have something to do with the ESCDELAY environment variable (ncurses(3))?
    Last edited by Peasantoid (2010-02-18 00:42:25)

    inxi -F output
    System:    Host: gort Kernel: 4.0.5-1-ARCH x86_64 (64 bit) Desktop: Xfce 4.12.2 Distro: Arch Linux
    Machine:   System: TOSHIBA product: Satellite L355 v: PSLD8U-06C01E
               Mobo: TOSHIBA model: Portable PC Bios: INSYDE v: 2.20 date: 12/09/2009
    CPU:       Dual core Intel Pentium Dual T3400 (-MCP-) cache: 1024 KB
               clock speeds: max: 2166 MHz 1: 2166 MHz 2: 2166 MHz
    Graphics:  Card: Intel Mobile 4 Series Integrated Graphics Controller
               Display Server: N/A driver: intel Resolution: 132x42
    Audio:     Card Intel 82801I (ICH9 Family) HD Audio Controller driver: snd_hda_intel
               Sound: Advanced Linux Sound Architecture v: k4.0.5-1-ARCH
    Network:   Card-1: Realtek RTL8101E/RTL8102E PCI Express Fast Ethernet controller driver: r8169
               IF: enp2s0 state: down mac: 00:1e:33:88:c2:90
               Card-2: Qualcomm Atheros AR242x / AR542x Wireless Network Adapter (PCI-Express) driver: ath5k
               IF: wlp3s0 state: up mac: 00:21:63:ba:02:86
    Drives:    HDD Total Size: 660.3GB (27.2% used) ID-1: /dev/sda model: FUJITSU_MHZ2250B size: 250.1GB
               ID-2: USB /dev/sdb model: MK1637GSX size: 160.0GB ID-3: USB /dev/sdd model: Portable size: 250.1GB
               ID-4: USB /dev/sdc model: Multi size: 0.1GB
    Partition: ID-1: / size: 87G used: 5.6G (7%) fs: ext4 dev: /dev/sda7
               ID-2: /home size: 20G used: 1.2G (7%) fs: ext4 dev: /dev/sda5
               ID-3: swap-1 size: 3.00GB used: 0.00GB (0%) fs: swap dev: /dev/sda6
    Sensors:   None detected - is lm-sensors installed and configured?
    Info:      Processes: 159 Uptime: 17 min Memory: 625.8/2883.9MB Init: systemd Client: Shell (bash) inxi: 2.2.25

  • Indicator only recives data at the termination of VI

    I have had this problem happen several times. What happens is that I right click a node's terminal and select create>>indicator. But the indicatior only updates when at the end of the VI when I stop it. Anything before that it just shows the previous value, like 0, instead of updating in the middle of the program when it recieves the data. This has happened with a SubVI that I made (unsigned 16-bit indicator) and with the "read" VI (not the "easy read" VI). With the read VI, I made an indicator for the "buffer", which was a string value. It should be noted though that the indicator was a funny, unusual type that the NXT Toolkit ususally has when you select create>>indicator. With the SubVI, I ran it indipendantly and it worked fine, so it was "outputing" data through the terminal. I also put a breakpoint on the wire from the SubVI to the indicator, and it never activated, the VI only ended when it was supposed to.
    Does anybody know what's up, know what I should do, or have this happen to them before?

    Thanks Mike; that makes sense now. And it sounds like a good idea but I don't think that's the case with this problem. I've included attachments of a Word document that further discribes my problem and the two VIs that are related to the problem. Hope that helps. Sorry that it's taken a while to get back to this thread
    Attachments:
    Calibrate Axis Centers (SubVI).vi ‏51 KB
    NXT LabVIEW Problem.doc ‏137 KB
    Main Joystick Car VI.vi ‏38 KB

  • How to enable a trusted site from the terminal?

    I have a group of about 100 Macs, with Safari 7.
    I would like to be able to via script, to configure Safari to open specific sites automatically when a PDF is open. Is there a default write command that allows me to do this?

    I have no problem compiling my NB projects from the terminal.
    It could possibly be a classpath problem is the reason you are getting your errors. However, I cannot speculate much more unless you post the error output you are getting.
    Please do so. Thanks.

  • Why, if I have to restart my iMac does the terminal open and I have to restart again to make Mail (6.3) open without showing it offline?

    Why, if I have to restart my iMac, does the terminal openm and why do I have to restart again to make Mail (6.3) open without showing it offline?
    early 2009 iMac 320  4GB memnory

    Triple-click anywhere in the line below to select it:
    osascript -e 'tell application "System Events" to get name of every login item' 2> /dev/null
    Copy the selected text to the Clipboard (command-C).
    Launch the Terminal application.
    Paste into the Terminal window (command-V).
    Post any lines of output that appear below what you entered — the text, please, not a screenshot.

  • [Solved] Launching Graphical Programs From The Terminal

    Occasionally I launch graphical programs from the terminal and they usually spit out what they're doing in the background, I know you can send this output to /dev/null but is there a way to have that is the default setting (ex. not having to type &> /dev/null each time) and then somehow turn console output back on when I want to debug something? I tried creating an alias but that didn't work.
    Last edited by brando56894 (2011-07-26 04:17:11)

    brando56894 wrote:
    I put it in my .bashrc and when I reload .bashrc I get this:
    bash: /home/bran/.bashrc: line 12: syntax error near unexpected token `;'
    bash: /home/bran/.bashrc: line 12: `no() { "$1"&>/dev/null & ;}'
    Remove that '&' and try again. (remember to reload the .bashrc)
    jasonwryan wrote:What, exactly, did you put in your .bashrc?
    He used your function but with "my" '&' - w/o 'nohup'.
    Last edited by karol (2011-07-26 04:25:55)

Maybe you are looking for

  • Operation could not be completed because "whatever file i'm copying" is in use

    Ever since upgrading my 2012 Mac Air to Mavericks, I've been seeing this error message sporadically when copying files to my SMB share on my raspberrypi. I'm not sure if it's just coincidence with the os upgrade, and I'm not sure how to consistently

  • How to delete cache in jboss?

    hi can anyone tell me how to remove cache from jboss3.0.4_tomcat4.1.12. my servlet is not getting recompiled after making changes to it. thou i restarted the server i am getting the page from the cache. only after changing the servlet's name i am abl

  • I have photoshop elements 7

    hi i have photoshop elements 7 and when i go to add a effect fx i get a error message saying the command paste is not currently available,if i press continue i get lots more error messages then it shuts down if i press stop it shuts down. can anyone

  • Has anyone had problems with the screen freezing for hours?

    Yesterday my phone kept freezing when I went to unlock it, after 5 minutes or so it would then go to the code unlocking screen but last night my screen frooze for 12 hours until it finally ran out of battery and shut down.  When the screen freezes th

  • Accessing PLD data tables

    Hello, I am currently creating a delivery note PLD. I would like to display the reference no. from the sales order document. I cannot see the sales order table from the list of tables. How can I pull this information from the sales order  table and d