Next: Package opsubst, Previous: Package odepack [Contents][Index]
Next: Directory operations, Previous: Package operatingsystem, Up: Package operatingsystem [Contents][Index]
Package operatingsystem
contains functions for operatingsystem-tasks, like file system operations.
Next: File operations, Previous: Introduction to operatingsystem, Up: Package operatingsystem [Contents][Index]
Change to directory dir
Create directory dir
remove directory dir
Examples:
(%i1) load("operatingsystem")$ (%i2) mkdir("testdirectory")$ (%i3) chdir("testdirectory")$ (%i4) chdir("..")$ (%i5) rmdir("testdirectory")$
Next: Environment operations, Previous: Directory operations, Up: Package operatingsystem [Contents][Index]
copies file file1 to file2
renames file file1 to file2
deletes file file1
Previous: File operations, Up: Package operatingsystem [Contents][Index]
Get the value of the environment variable env
Example:
(%i1) load("operatingsystem")$ (%i2) getenv("PATH"); (%o2) /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
Next: Package opsubst, Previous: Package odepack [Contents][Index]