Με ορισμό οικουμενικής μεταβλητής path και $outputfile = ($path + "output." + "phase"+ $phase) output-file-start $outputfile
->
[cpu0] cs:0x0804a305 p:0x0e0d6305 jne 0x804a2f8 Failed to open '/home/vassileios/simics-workspace/results/art/4_2/output.phase0' for writing [artstandard.simics:26] error in 'output-file-start' command Error - interrupting script.
ενώ με $outputfile = ("output." + "phase"+ $phase) output-file-start /home/username/simics-workspace/..../$outputfile
->
[cpu0] cs:0x0804a305 p:0x0e0d6305 jne 0x804a2f8 Argument error: argument 2 ("output.phase0") given to 'output-file-start' has the wrong type; flag expected. SYNOPSIS: output-file-start filename [-overwrite] [-append]
[artstandard.simics:24] error in 'output-file-start' command Error - interrupting script.
Επισυνάπτεται ο κώδικας, το αρχικό script που καλεί τον simics και το αρχείο με το παράρτημα Δ και το ζέσταμα.
Καλημέρα,
Με ορισμό οικουμενικής μεταβλητής path και $outputfile = ($path + "output." + "phase"+ $phase) output-file-start $outputfile
->
[cpu0] cs:0x0804a305 p:0x0e0d6305 jne 0x804a2f8 Failed to open '/home/vassileios/simics-workspace/results/art/4_2/output.phase0' for writing [artstandard.simics:26] error in 'output-file-start' command Error - interrupting script.
Τσέκαρε ότι το path που δίνεις είναι σωστό. O simics μπορεί να δημιουργήσει το αρχείο που του λες δεν μπορεί όμως να δηιουργήσει φακέλους. Αυτοί πρέπει να προϋπάρχουν.
ενώ με $outputfile = ("output." + "phase"+ $phase) output-file-start /home/username/simics-workspace/..../$outputfile
->
[cpu0] cs:0x0804a305 p:0x0e0d6305 jne 0x804a2f8 Argument error: argument 2 ("output.phase0") given to 'output-file-start' has the wrong type; flag expected. SYNOPSIS: output-file-start filename [-overwrite] [-append]
Προφανώς δεν αναγνωρίζει το argument και μάλιστα μιλάει για argument 2! Επομένως το concatenation των strings δε γίνεται με τον τρόπο που το έχεις κάνει.Θέλει "", + κτλ.
K.
advcomparch@lists.cslab.ece.ntua.gr