1# writeproc 2 3 4## Command Function 5 6This command is used to write data to the specified proc file system. The proc file system supports data of strings. The method for writing data needs to be implemented. 7 8 9## Syntax 10 11writeproc <*data*> >> /proc/<*filename*> 12 13 14## Parameters 15 16**Table 1** Parameter description 17 18| Parameter | Description | 19| -------- | ---------------------------------------------------------- | 20| data | Specifies the string to write, which ends with a space. If you need to write a space, use **""** to enclose the space. | 21| filename | Specifies the proc file to which **data** is to write. | 22 23 24## Usage Guidelines 25 26The proc file system implements its own **write()** function. Calling the **writeproc** command will pass input parameters to the **write()** function. 27 28> **NOTE**<br> 29> The procfs file system does not support multi-thread access. 30 31## Note 32 33Currently, the shell does not support this command. 34 35## Example 36 37Run **writeproc test >> /proc/uptime**. 38 39 40## Output 41 42``` 43OHOS \# writeproc test >> /proc/uptime 44 45[INFO]write buf is: test 46 47test >> /proc/uptime 48``` 49 50> **NOTE**<br> 51> The **uptime** proc file temporarily implements the **write()** function. The **INFO** log is generated by the **test()** function. 52 53