Linux ns8.secondary29.go.th 2.6.32-754.28.1.el6.x86_64 #1 SMP Wed Mar 11 18:38:45 UTC 2020 x86_64
Apache/2.2.15 (CentOS)
: 122.154.134.11 | : 122.154.134.9
Cant Read [ /etc/named.conf ]
5.6.40
apache
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
share /
doc /
util-linux-ng-2.17.2 /
[ HOME SHELL ]
Name
Size
Permission
Action
AUTHORS
8.03
KB
-rw-r--r--
COPYING.GPL
17.56
KB
-rw-r--r--
COPYING.UCB
1.78
KB
-rw-r--r--
NEWS
63.36
KB
-rw-r--r--
README
2.8
KB
-rw-r--r--
README.cal
2.21
KB
-rw-r--r--
README.cfdisk
1.72
KB
-rw-r--r--
README.clear
196
B
-rw-r--r--
README.col
2.15
KB
-rw-r--r--
README.ddate
4.22
KB
-rw-r--r--
README.devel
4.1
KB
-rw-r--r--
README.fdisk
26.47
KB
-rw-r--r--
README.floppy
3.45
KB
-rw-r--r--
README.flushb
188
B
-rw-r--r--
README.getty
1.01
KB
-rw-r--r--
README.hwclock
1.17
KB
-rw-r--r--
README.licensing
617
B
-rw-r--r--
README.modems-with-agetty
2.56
KB
-rw-r--r--
README.mount
318
B
-rw-r--r--
README.namei
989
B
-rw-r--r--
README.namei2
599
B
-rw-r--r--
README.poeigl
22.3
KB
-rw-r--r--
getopt-parse.bash
1.46
KB
-rw-r--r--
getopt-parse.tcsh
2.2
KB
-rw-r--r--
getopt-test.bash
122
B
-rw-r--r--
getopt-test.tcsh
120
B
-rw-r--r--
sfdisk.examples
10.65
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : getopt-parse.tcsh
#!/bin/tcsh # A small example program for using the new getopt(1) program. # This program will only work with tcsh(1) # An similar program using the bash(1) script language can be found # as parse.bash # Example input and output (from the tcsh prompt): # ./parse.tcsh -a par1 'another arg' --c-long 'wow\!*\?' -cmore -b " very long " # Option a # Option c, no argument # Option c, argument `more' # Option b, argument ` very long ' # Remaining arguments: # --> `par1' # --> `another arg' # --> `wow!*\?' # Note that we had to escape the exclamation mark in the wow-argument. This # is _not_ a problem with getopt, but with the tcsh command parsing. If you # would give the same line from the bash prompt (ie. call ./parse.tcsh), # you could remove the exclamation mark. # This is a bit tricky. We use a temp variable, to be able to check the # return value of getopt (eval nukes it). argv contains the command arguments # as a list. The ':q` copies that list without doing any substitutions: # each element of argv becomes a separate argument for getopt. The braces # are needed because the result is also a list. set temp=(`getopt -s tcsh -o ab:c:: --long a-long,b-long:,c-long:: -- $argv:q`) if ($? != 0) then echo "Terminating..." >/dev/stderr exit 1 endif # Now we do the eval part. As the result is a list, we need braces. But they # must be quoted, because they must be evaluated when the eval is called. # The 'q` stops doing any silly substitutions. eval set argv=\($temp:q\) while (1) switch($1:q) case -a: case --a-long: echo "Option a" ; shift breaksw; case -b: case --b-long: echo "Option b, argument "\`$2:q\' ; shift ; shift breaksw case -c: case --c-long: # c has an optional argument. As we are in quoted mode, # an empty parameter will be generated if its optional # argument is not found. if ($2:q == "") then echo "Option c, no argument" else echo "Option c, argument "\`$2:q\' endif shift; shift breaksw case --: shift break default: echo "Internal error!" ; exit 1 endsw end echo "Remaining arguments:" # foreach el ($argv:q) created problems for some tcsh-versions (at least # 6.02). So we use another shift-loop here: while ($#argv > 0) echo '--> '\`$1:q\' shift end
Close