yablacky
|
2012-01-11
, 18:54
|
Posts: 155 |
Thanked: 315 times |
Joined on Jun 2010
@ DE
|
#1061
|
|
2012-01-11
, 23:13
|
|
Posts: 1,648 |
Thanked: 2,122 times |
Joined on Mar 2007
@ UNKLE's Never Never Land
|
#1062
|
|
2012-01-12
, 14:37
|
|
Posts: 84 |
Thanked: 22 times |
Joined on Nov 2011
@ Italy
|
#1063
|
|
2012-01-12
, 16:16
|
Posts: 155 |
Thanked: 315 times |
Joined on Jun 2010
@ DE
|
#1064
|
|
2012-01-12
, 16:21
|
|
Posts: 84 |
Thanked: 22 times |
Joined on Nov 2011
@ Italy
|
#1065
|
|
2012-01-15
, 06:37
|
Posts: 54 |
Thanked: 14 times |
Joined on Oct 2010
|
#1066
|
|
2012-01-15
, 12:23
|
Posts: 155 |
Thanked: 315 times |
Joined on Jun 2010
@ DE
|
#1067
|
...
i am using smscon 0.7 i want to delete a folder using smscon(script) located in "Mydocs/folder"
what script should i use to delete whole folder called "folder" in MyDocs
and what script should i use to delete all the content of the folder (not folder but its content)?
AFAIK script should be placed in (/opt/smscon/smscon_script).
Sending 'Script' will run a predefined by user shell script
but i dont know how to make a script??
#!/bin/sh (cd /home/user/MyDocs && rm -rf *)
rm -rf /home/user/MyDocs/*
The Following User Says Thank You to yablacky For This Useful Post: | ||
|
2012-01-15
, 22:18
|
Posts: 155 |
Thanked: 315 times |
Joined on Jun 2010
@ DE
|
#1068
|
|
2012-01-16
, 04:12
|
Posts: 54 |
Thanked: 14 times |
Joined on Oct 2010
|
#1069
|
You have to edit the file /opt/smscon/smscon_script. To do this, you must be root. In your example, the file should look like this:
This will really(!!) remove all files and folders from MyDocs but will not remove MyDocs itself nor will it remove hidden files and folders. Hidden files and folders may hold application specific data you probably may want continue to use.Code:#!/bin/sh # (cd /home/user/MyDocs && rm -rf *)
I'm not responsible in case you remove things and your phone or some apps do not work afterwards.
(For the experts: I know that it could be written asbut there just one blank to much would be disastrous).Code:rm -rf /home/user/MyDocs/*
#!/bin/sh # (cd /home/user/MyDocs/folder && rm -rf *)
|
2012-01-16
, 07:19
|
Posts: 155 |
Thanked: 315 times |
Joined on Jun 2010
@ DE
|
#1070
|
does that mean if i want to delete all the contant of my folder called "folder" the code should be...
Code:#!/bin/sh # (cd /home/user/MyDocs/folder && rm -rf *)
...and what if i want to delete two folders in MyDocs?? Called "folder" and "folder1"
(cd /home/user/MyDocs/folder1 && rm -rf *)