Thanks for the replies,
For some reason only one chunk of data is printed even though the log is still
being written to
fh = open(last_sim_log)
try
while true
print(readline(fh))
end
finally
close(fh)
end
For readavailable(fh), I getting "no method matching readavaila
I have an active log and I wondered how I could `tail -f` this without running
the Unix command?
Thanks
Aidy
> There are POSIX standards for new programming language function names?
No, but you've implemented functions with POSIX names
> yes, ls() could be a better name
In the REPL, I might
julia> cd("projects")
And want to
julia> ls()
to see what's there
But, I probably wouldn't want to do that
Both the functions pwd() and walkdir() are defined in the filesystem
package, but:
julia> VERSION
v"0.4.6"
julia> pwd()
"/Users/aidy"
julia> walkdir(".")
ERROR: UndefVarError: walkdir not defined
Aidy
Hi,
I am looking for something like a Unix tail on a log generated by another
process.
I know there isn't a tail function in Julia. Is there an example of using
the PollingFileWatcher?
Thanks
Aidy