wiki:Docs/Prog/Manual/Foundation/Shell-Linux-DOS-Reference

Table of Contents

  1. Application Libraries
  2. Database Libraries
    1. MySQL Client
    1. About SQLite
    2. SQLite Library (libsql)
      1. Using libsql
    3. SqlBuilder? Class
    4. SQLite++ Class
    5. Using SQLite++ with SqlBuilder?
  3. Standard 825 Library with Application class (lib825)
    1. Utility Functions
  4. Standard 825 Library with EVENT features (lib825ev)
  5. Analog Output (DAC Digital to Analog Conversion) Functions
  6. GetDAC
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  7. GetDACPercent
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  8. GetDACRangeFromIndex
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  9. GetIndexFromDACRange
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  10. SetDACFloat
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  11. SetDACOutputRange
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  12. SetDACPercent
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  13. SetDACReg
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  14. SetDACTrackGrossNet
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  15. SetDACTrackScale
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  16. StopDACTrackScale
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  17. Display Functions
  18. CBitmap
    1. Constructors
        1. Parameters
        2. Examples
    2. Member Functions
      1. LoadBitmp?
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      2. DeleteBitmap?
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      3. Draw
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      4. GetWidth?
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      5. GetHeight?
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      6. GetColorCnt?
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      7. GetColorsAdded?
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      8. GetError?
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      9. ReclaimColors?
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
  19. ClearLCD
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  20. DisplayStr = DEPRECATED, DOES NOT CURRENTLY WORK!!! See DisplayText …
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  21. DisplayText
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  22. GetX
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  23. GetY
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  24. InitLCD
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  25. IsFontLoaded
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  26. LocateLCD
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  27. PrintLCD
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  28. PrintLCDbutton
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  29. PrintLCDfont2
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  30. ReadFont
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  31. SetBkColor
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  32. SetCurColor
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  33. File Functions
  34. CFile
    1. Constructors
        1. Parameters
        2. Examples
    2. Member Functions
      1. Open
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      2. Close
        1. Parameters
        2. Retrun Value
        3. Remarks
        4. Example
      3. SetSerial?
        1. Parameters
        2. Return Value
        3. Remarks
        4. Examples
      4. ReadLine?
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      5. DeleteFile?
        1. Parameters
        2. Return value
        3. Remarks
        4. Examples
      6. IsOpen?
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      7. IsReady?
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      8. SetRTS
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      9. GetFile?
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      10. Print
        1. Parameters
        2. Return Value
        3. Remarks
        4. Examples
      11. SetNonBlocking?
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      12. Read
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      13. Write
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      14. GetBytesRead?
        1. Parameters
        2. Return Value
        3. Example
      15. GetbytesWritten?
        1. Parameters
        2. Return Value
        3. Example
      16. Seek
  35. IsMounted
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  36. Form Functions
  37. CForm
  38. EVENT
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  39. FORM_ADD_BUTTON
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  40. FORM_ADD_INPUT
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  41. FORM_HIDE
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  42. FORM_INIT
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  43. FORM_RUN
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  44. FORM_SHOW
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  45. Input / Output (Digital I/O) Functions
  46. GetInput
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  47. GetInputMask
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  48. GetOutput
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  49. SetDIOCounter
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  50. SetOutput
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  51. SetOutputMask
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  52. StartDIOPulse
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  53. StartRepeatIO
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  54. StopDIOPulse
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  55. StopRepeatIO
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  56. Keypad/Sound? Functions
  57. ClearKeyBuffer
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  58. OpenBeeper
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  59. PlayNotes
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  60. WaitKeypress
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  61. Process Functions
  62. GetProcessID
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  63. GetProcessIDExcludeSelf
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  64. KillProcess
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  65. ResetPrevGrossWt
  66. ResetPrevNetWt
  67. ResetPrevTareWt
  68. test
  69. String Functions
  70. FloatToStr
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  71. IntToStr
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  72. StrFmt
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  73. StrFmtLen
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  74. StrToFloat
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  75. StrToInt
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  76. StrTrimLeft
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  77. StrTrimRight
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  78. Ticket Functions
  79. CTktFlds
    1. Constructor
        1. Parameters
        2. Examples
    2. Member Functions
      1. Clear
        1. Parameters
        2. Return Value
        3. Remarks
        4. Examples
      2. Set
        1. Parameters
        2. Retrun Value
        3. Remarks
        4. Example
      3. SetEvent?
        1. Parameters
        2. Retrun Value
        3. Remarks
        4. Example
  80. PrintTkt
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  81. Time and Date Functions
  82. CMillisecondTimer
    1. Constructors
        1. Parameters
        2. Example
    2. Member Functions
      1. Set
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      2. Clear
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
  83. CSleep
    1. Constructor
        1. Parameters
        2. Example
    2. Member Functions
      1. SetTime?
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      2. Pause
        1. Parameters
        2. Retrun Value
        3. Remarks
        4. Example
  84. CTimer
    1. Constructors
        1. Parameters
        2. Example
    2. Member Functions
      1. Set
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      2. Clear
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
  85. DoSleep
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  86. GetDateStr
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  87. GetLinuxTime
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  88. GetTimeStr
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  89. IsTimeChanged
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  90. ResetPrevTime
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  91. SleepMilliseconds
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  92. SleepSeconds
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  93. Utility Functions
  94. GetKernelVer
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  95. GetKernelVerStr
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  96. GetLoaderVer
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  97. GetLoaderVerStr
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  98. GetMemFree
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  99. GetMnBdVer
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  100. GetMnBdVerStr
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  101. Weighing Functions
    1. Minimal Weight Indicator Sample Program
  102. CheckWIM
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  103. FormatGrossWt
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  104. FormatNetWt
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  105. FormatTareWt
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  106. GetBelowZero
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  107. GetCapacity
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  108. GetCenterZero
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  109. GetCurUnitsLabel
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  110. GetDecimal
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  111. GetGrossWt
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  112. GetInterval
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  113. GetMotion
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  114. GetNetWt
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  115. GetNumScales
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  116. GetOverCap
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  117. GetProcessScale
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  118. GetSecUnitsLabel
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  119. GetTareWt
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  120. GetUnitsLabel
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  121. GetWtError
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  122. IsGrossWtChanged
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  123. IsNetWtChanged
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  124. IsTareWtChanged
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  125. IsWtStatusChanged
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  126. IsWtUnitsChanged
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  127. MnBdClearEvent
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  128. MnBdClose
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  129. MnBdGetErr
  130. MnBdGetErrMsg
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  131. MnBdGetErrMsgStr
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  132. MnBdOpen
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  133. MnBdProcess
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  134. MnBdRead
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  135. MnBdRequest
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  136. MnBdSetEvent
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  137. MnBdShutdown
  138. MnBdStartup
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  139. ResetPrevGrossWt
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  140. ResetPrevNetWt
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  141. ResetPrevTareWt
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  142. ResetPrevWtStatus
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  143. ResetPrevWtUnits
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  144. SetTareCurrent
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  145. SetTareValue
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  146. SetWIM
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  147. StartRepeatMulti
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  148. StartRepeatWt
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  149. StopRepeatMulti
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  150. StopRepeatWt
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  151. ZeroScale
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  152. Development Environment
  153. Application Signing
  154. Debugging
    1. GDB
  155. Setup for Software Development
      1. About
      2. Features of the Cardinal 825 Programming Environment
      3. Required Files
      4. Installing the Environment
      5. Starting the Environment
      6. Using the Environment
        1. Welcome Screen
        2. Project Explorer
        3. Task Repositories
        4. Task Queries
        5. Subversion
  156. Version Control
    1. Subversion
      1. About Subversion
      2. Subclipse for Eclipse
        1. Installing Subclipse
          1. Importing Projects Using Subclipse
  157. Device Support
  158. Device Drivers
    1. Overview
  159. Beeper
  160. DIO
    1. Digital I/O
    2. DIO Events
      1. About
      2. The Code
    3. DIO Counting
      1. Description
      2. Example
  161. Display
    1. Fonts
  162. Network
    1. Network File System (NFS)
    2. Weight Server -- Network Access
    3. Network Programming
      1. 825 TCP/IP Server Example
      2. 825 TCP/IP Client Example
    4. Send E-mail from 825
  163. Serial Ports
    1. Using Serial Ports for Linux Shell
    2. Generic Serial Port Use
  164. USB Support
    1. 825 USB A Ports (2)
      1. USB Mass Storage
        1. Accessing USB storage from a program
      2. USB Keyboards
      3. USB Printing
        1. Compatible USB Printers
      4. USB Hubs
    2. 825 USB B Port (1)
      1. USB to PC communications
  165. Weighing
    1. Get Weight
      1. Command prompt testing
      2. Access the weight data from a program
        1. Example of simple weighing program
        2. Example of high Speed weighing of two scales using total mode
  166. Foundation
  167. Application Mode Startup
    1. Introduction
    2. Modules
    3. Appmenu Shell Script
    4. Mounts
    5. Support Applications
  168. Shell operations - Linux / DOS Reference

Shell operations - Linux / DOS Reference

Linux shell commands are lower case. DOS commands are not case sensitive. In linux path and filenames are case sensitive. DOS path and file names are not case sensitive. Linux paths use forward slashes “/” as separators. DOS paths use backslashes “\” as separators. Linux paths do not use disk drive letters. DOS paths may include disk drive letters such as “C:\tmp”.

LinuxDOSDescription
cat fileTYPE fileDisplay the contents of a text file
cd pathCHDIR path

or

CD path
Change directory. A space is required for Linux. For example, in DOS you may type “CD\” to change to the top level directory. In Linux type “cd /” to change to the top level directory.
chmod params fileATTRIB params fileSet file mode attributes. Common linux modes are “read”, “write”, “executable”. DOS uses file extensions such as EXE or COM for designate files as executable. Linux does not use extensions for executable files. Instead set the executable file mode. For example,chmod +x indicator sets the “indicator” file to be executable.
cmp file1 file2FC file1 file2Compare two files to check for binary differences
cp from toCOPY from {to}Copy a file or files from one location to another. In DOS you may omit the “to” path to copy to the current directory. In Linux specify the “to” path as a period “.” to copy to the current directory.
echo textECHO textOutput some text, commonly redirected to a device or file. For example, echo “hello” > /dev/ttyS0 will send the message “hello” out the serial port.
kill pidN/AEnd a running process. Use the “ps” command first to determine the process id (pid).
ls {path}DIR {path}List files in a directory. If path is not specified the listing will show files in the current directory. For Linux the parameter “-l” is useful for a detailed listing. For example,ls –l /usr provides a detailed directory listing showing file attributes and date stamp.
mkdir pathMKDIR path

or

MD path
Create a directory.
mount params dev mntptN/AEnable access to a file system such as a USB flash drive.
mv from toRENAME from to

or

REN from to
Rename a file.
psN/AShow list of running processes along with their pids (process ids).
pwdCDDisplay the current directory.
rm fileDEL fileDelete a file.
rmdir pathRMDIR path

or

RD path
Remove a directory. The directory must be empty.
umountN/ADisconnect from a file system.
Last modified 7 years ago Last modified on Sep 7, 2010, 12:35:40 PM