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