由买买提看人间百态

topics

全部话题 - 话题: sbin
首页 上页 1 2 3 4 5 (共5页)
c********e
发帖数: 383
1
I wrote a small piece of code, if you run sbin, the out put is 0 however if
you run shbin the out put is one , which is what i expect...
can not figure out why. Thanks,
///////////////////////////////////////////
//lib.h
#include
#include
#include
template
class SingleTon
{
public:
static T * instance ();
protected:
SingleTon () {}
static T * instance_;
};
class A : public SingleTon
{
public:
A () {}
int size () { return box_.size (); }
void
p***o
发帖数: 1252
2
为什么sbin是0不是1?
m********r
发帖数: 334
3
这段程序读boa的配置文件boa.conf,找到端口号后改写新端口,例如
Port 80
# Listen: the Internet address to bind(2) to. If you leave it out,
# it takes the behavior before 0.93.17.2, which is to bind to all
# addresses (INADDR_ANY). You only get one "Listen" directive,
变成Port 8080
# Listen: the Internet address to bind(2) to. If you leave it out,
# it takes the behavior before 0.93.17.2, which is to bind to all
# addresses (INADDR_ANY). You only get one "Listen" directive,
现在发现每次第一次修改的时候这一行没问题,但是下面的注释的#号没有了,变成
n: the I... 阅读全帖
d****n
发帖数: 1637
4
来自主题: Programming版 - 最新某公司onsite面试题 (转载)
my shabby code for questions 4.
//File resovle.c
#include
#include
#include
#define MAXLINECHARSIZE 1000
inline int fsplit(char *line, char **items, char delim);
int main(int argc, char * argv[]){
/***prepare && allocate buffer/space***/
int n,nbytes=100, maxcol=10, maxchar=1000;
char **items;
{
items=(char **) malloc(maxcol*sizeof(char *));
int i;
for(i=0; i items[i]=(char*)malloc(maxchar*sizeo... 阅读全帖
t***t
发帖数: 6066
5
来自主题: Programming版 - 自己开发装机
executable with internal error is:
/sbin/plymouthd
error is:
"plymouthd crashed with SIGSEGV in script_obj_deref_direct()"
what's wrong? anyone got same and how to fix?
my ubuntu is 13.10
j*****o
发帖数: 320
6
来自主题: Security版 - Tripwire不能update数据
系统是RH7.1, /var/lib/tripwire/report目录存在,每天
检查都能正常完成,但使用update总是报错.
# /usr/sbin/tripwire --update
### Error: File could not be opened.
### Filename: /var/lib/tripwire/report/localhost-20010719-124814.twr
### No such file or directory
### Exiting...
#
谢谢
z*****u
发帖数: 6
7
来自主题: Unix版 - DEC Alpha到底有多快?
depends. 21164's about the same speed as pII. 21264 are at
least twice as fast. if you're using dec osf, you can tell
which one you're using by '/usr/sbin/psrinfo -v'. Also it's
compiler dependent. On 264, it's huge difference between
'cc -fast -arch ev6 -tune ev6' vs. 'gcc -O3 -whatever'.
n*o
发帖数: 442
8
来自主题: Unix版 - [转载] 紧急求助
【 以下文字转载自 Linux 讨论区 】
【 原文由 neo 所发表 】
我的机器昨天晚上还用的好好的,
今天突然Redhat 6.1起不来了.
系统提示:
VFS: Mounted root (ext2 filesystem)
autodetecting RAID arrays
autorun...
... autorun DONE
kmod: failed to exec /sbin/modprobe -s -k block-major-33,
errno = 2
VFS: Cannot open root device 21:02
Kernal panic: VFS: Unable to mount root fs on 21:02
哪位大侠能给个办法? 多谢!
硬盘是IBM 20G,redhat 系统可以找的到.
而且,win98破舳裁挥形侍
c**t
发帖数: 2744
9
来自主题: Unix版 - Help on 'make'

No.
$PATH
/home/cogt/bin:.:..:/home/proj/esps/bin:.:/opt/SUNWspro/bin:/bin:
/usr/bin:/usr/local/bin:/usr/local/include:/usr/ccs/bin:/usr/openwin/bin:/usr/ucb:
/usr/sbin:/opt/s32cdsp/bin5:
D****N
发帖数: 430
10
来自主题: Unix版 - a difficult question
netstat -a shows all ports that are listening
only the first few ports are tcp and udp ports so use netstat -a |more
if it's a standard unix service you can try more /etc/services |grep urport#
lsof might not be in the defualt path and installation
still try /usr/sbin/lsof
m*******m
发帖数: 182
11
来自主题: Unix版 - kill init process
I think it should bring the system down to single user mode,
or halt the system(). The source is at src/sbin/init/
directory in the source tree.
c*****t
发帖数: 1879
12
来自主题: Unix版 - Question: How to make room for /?
For system files/directories, better not move them around since if you
do, you may not get the system boot up because at the boot time, only /
is mounted. Also, many /usr/bin/, /sbin/ maybe hard linked to other
directories; moving them don't save any space..
m****f
发帖数: 32
13
I use Solaris 8.
I always have to type ./commandname in the current directory. I
don't like it. Actually, in the path settings for both the SU
and ordinary users, I have the dot (".") like this: /usr/bin:/usr/sbin:.
Then why? Can you guys explain please? And how should I attack
this problem?
z****x
发帖数: 2
14
Maybe you can change it to "/usr/bin:/usr/sbin/:./"
the shell will explain the command to ./yourcommand.
if not, the shell will get ".yourcommand" I guess.
s******r
发帖数: 21
15
在/usr/local/etc/rc.d下建立一个文件,比如netalias
文件中写入类似以下的语句
ifconfig dc1 alias xxx.xxx.xxx.xxx netmask 0xffffffff
ifconfig dc2 alias xxx.xxx.xxx.xxx netmask 0xffffffff
....
其中dc1,dc2是你网卡设备,你的机器上不一定叫做这个名字,你用/sbin/ifconfig 就可
以得到你的网卡设备名称。"xxx.xxx.xxx.xxx"是你的IP地址。将该文件的属性改成可执
行chmod +x netalias,如果你重新启动机器,你的所有网卡便绑在同一IP地址上了。
如果不愿意重起机器,就执行该文件,一切OK。
l*l
发帖数: 225
16
来自主题: Unix版 - why my "biff" doesn't work?
Good,
put such line in your /etc/inetd.conf
comsat dgram udp nowait root /usr/sbin/tcpd in.comsat
And then
killall -HUP inetd
I haven't touch SUN for several years, maybe not right, just as reference.
w**n
发帖数: 88
17
/sbin/ifconfig -a
p*********r
发帖数: 23
18
a bit more informative commands on solaris:
/bin/uname -X
/usr/platform/`/bin/uname -i`/sbin/prtdiag
p*******a
发帖数: 15
19
来自主题: Unix版 - 再问一个关于Telnet的问题
# Ftp and telnet are standard Internet services.
telnet stream tcp nowait root /usr/sbin/in.telnetd in.telnetd
在我的工作站上是这个样的,没有你提到的tcpd,我也看了我得/etc下没有hosts.allow
目录,是这个目录吗?
anyway,谢谢
T********r
发帖数: 6210
20
来自主题: Unix版 - 再问一个关于Telnet的问题
check whether there's an in.telnetd in /usr/sbin/
btw, hosts.allow is a file, not a directory.
d****g
发帖数: 6
21
来自主题: Unix版 - 为什么我的SUN没有PING
/usr/sbin/ping
a*******s
发帖数: 295
22
来自主题: Unix版 - tough! help! expert needed!
I searched "iconv" But I am not sure which one is the desired.
that's why I tryed libiconv .
Where can I find the iconv package needed?
what files will this package copy to the system?
Thanks.
BTW, seems I have a executable named iconv in /sbin directory. Is this
the one we want?
u***q
发帖数: 21
23
My system is Alpha OSF1 5.0.
I downloaded a tar file for alpha from mozilla.org and unziped it.
Then I can't find the install file.
When I ran the file "mozilla", it shew error message:
53182:./mozilla-bin: /sbin/loader: Fatal Error: object libgtk-1.2.so
from liblist in ./mozilla-bin has version "9.0", which does not match
the found object: /usr/local/lib/libgtk-1.2.so
(with version "5.5.1:0.0:1.0:2.0:3.0:4.0:5.0")
I do not have the root right, can I install and use mozilla?
Thanks for answer.
d*******t
发帖数: 36
24
My printer server running cups system on a linux computer. in the client side,
Solaris 9 and lpd are used and the following command are used to add the
printer:
lpadmin -p hp5a -s cupsserver
lpadmin -p hp5a -T PS -I postscript,simple
lpadmin -p hp5a -D "HP Laser Jet 5M"
lpadmin -d hp5a
/usr/sbin/lpshut
/etc/init.d/lp stop
/etc/init.d/lp start
However, the command lpq give me following information:
could not talk to print service at cupsserver
What's the problem? Please help me. Thanks very much.
F******l
发帖数: 90
25
【 以下文字转载自 Linux 讨论区 】
【 原文由 Football 所发表 】
就是启动后是text界面:
somewhere login:
...
我用/sbin/init 3可以将graphics换成text,但是一重启又回去了。
在menu上找了好久也没有找到相应的设置。那位告诉我怎么整?
多谢了
s**s
发帖数: 242
26
来自主题: Unix版 - rsh port/protocol?
my os is solaris
in /etc/inetd.conf, there's 1 line:
shell stream tcp nowait root /usr/sbin/in.rshd in.rshd
in /etc/services:
login 513/tcp
i******l
发帖数: 2
27
来自主题: Unix版 - 怎样查系统信息?
dependson which os u use, under solaris, use
uname -X to check # of CPUs and
/usr/sbin/prtconf | grep Mem to check memory
c*r
发帖数: 278
28
/usr/sbin/psrinfo -v
m**u
发帖数: 632
29
来自主题: Unix版 - 怎样做ramdisk
solaris 9.0,SUN manual说ramdiskadm在/usr/sbin
但我的整个系统里也找不到这个exe
大家说怎么办
T********r
发帖数: 6210
30
来自主题: Unix版 - 关于solaris的几个问题请教

uname -a
SunOS 5.4 - Solaris 2.4
SunOS 5.5 - Solaris 2.5
SunOS 5.6 - Solaris 2.6
SunOS 5.7 - Solaris 7
SunOS 5.8 - Solaris 8
SunOS 5.9 - Solaris 9
SunOS 5.10 - Solaris 10
/usr/sbin/pkgadd, guess it's in the base system
c******y
发帖数: 37
31
来自主题: Unix版 - 关于solaris的几个问题请教

uname -a
cat /etc/release
http://www.ocf.berkeley.edu/solaris/versions/
Two more versions:
5.9 9 2002 sun4m,sun4d,sun4u, x86
5.10 10 2005 sun4m,sun4d,sun4u, x86, AMD64
pkgadd is in the base system, and under /usr/sbin.
i**o
发帖数: 13
32
来自主题: Unix版 - 请教关于查cpu信息的命令
想知道cpu的信息,在网上找到这个命令
/usr/platform/`uname -i`/sbin/prtdiag
得到的结果如下。那么是不是说cpu只有248mhz?
另外到底有几个cpu? 6?
谢谢。
System Configuration: Sun Microsystems sun4u 4-slot Sun Enterprise 3000
System clock frequency: 82 MHz
Memory size: 1280Mb
========================= CPUs =========================
Run Ecache CPU CPU
Brd CPU Module MHz MB Impl. Mask
r*****u
发帖数: 2013
33
来自主题: Unix版 - 我的cygwin总是发布了email
我安装的时候都已经选择了所有的mail category下的所有的packages
每次运行email
还是找不到/usr/sbin/sendmail
有人知道为什么吗?
c*********n
发帖数: 182
34
runme.sh:
#!/sbin/sh
time /path/to/command_1
time /path/to/command_2
(time [command] 输出运行用了多久……)
chmod +x runme.sh
$ ./runme.sh
就好了……
L******k
发帖数: 33825
35
来自主题: Education版 - 美国中学真狠啊 (转载)
【 以下文字转载自 NewYork 讨论区 】
发信人: buddyboy (hello), 信区: NewYork
标 题: 美国中学真狠啊 (转载)
发信站: BBS 未名空间站 (Fri Feb 19 14:49:22 2010, 美东)
发信人: Plasma50 (Plasma50), 信区: Military
标 题: 美国中学真狠啊
发信站: BBS 未名空间站 (Fri Feb 19 09:54:28 2010, 美东)
http://www.cnn.com/2010/CRIME/02/18/new.york.doodle.arrest/index.html?hpt=Sbin
纽约一12岁的小姑娘在课桌上涂鸦,直接被警察当着同学的面铐起来带走了。
b***i
发帖数: 3043
36
来自主题: EE版 - 如何在嵌入式使用iwconfig?
在CentOS编译wireless_tools.29到Zynq (ARM)的Petalinux,把编译后的文件复制到目
标的/usr/sbin等目录。然后使用的时候,出现无法找到/proc/net/wireless。
请问,iwconfig之类的需要/proc/net/wireless,而我目标没有gcc,所以我没有在目标
安装就没有完全完成它需要的。怎么才能让它实现这个目录呢?
1.能否在CentOS里面把iwconfig安装到目标系统的文件,然后我制成image。
2.或者,能否有办法手动实现iwconfig需要的所有安装过程?
h***o
发帖数: 539
37
来自主题: Science版 - Help!!!!!!
UNIX里面没有trashbin??? 不可能吧。
TT_DB/ dev/ home/ opt/ scra3/ var/
bin@ devices/ kernel/ platform/ scra4/ vol/
class/ etc/ lib@ proc/ scra5/ xfn/
core export/ lost+found/ sbin/ tmp/
data/ gempak/ mnt/ scra1/ unidata/
data2/ gempak2/ net/ scra2/ usr/
lost+found总有吧
w********y
发帖数: 371
38
那肯定是我们同学了。。。【 在 sbin (nibs) 的大作中提到: 】
m*d
发帖数: 7658
39
原来没有指定路径sbin
m*d
发帖数: 7658
40
原来没有指定路径sbin
k***e
发帖数: 7933
41
来自主题: _voip版 - integrate google voice with asterisk
在pap2里面做了如下设置:
proxy:192.168.1.1 (router ip)
UserId: 1000
pasword:1234
user AuthId: yes
AuthId: 1000
在info页面却显示Can't connect to login server
在router里面ps有如下,是不是表示asterisk已经运行了?
/opt/sbin/asterisk -q
现在该查什么呢?
好像我的opt目录下也没有web这个子目录,是不是
少装了什么?
m**v
发帖数: 373
42
GUI应该可以啊, 我安装这里装的。可以跑,但是我现在的问题是好像这个GUI没有和
asterisk的配置文件连接上,gui上面看不到asterisk的那些配置。
1)你的dialplan是怎么样把1屏蔽掉的? 其实在extension文件里把有_NXXNXXXXXX那
些行拷贝并且把_NXXNXXXXXX改成_1NXXNXXXXXX也可以。用你的那个屏蔽的办法更好。
2)这么简单就加上了, 我的也可以了,试了一下通话的时候有点不连贯,有时候有停
顿的感觉。你的router上run起来还有多少free memory?打电话的时候呢?我的有时候
300K有时候1100KB。你load了哪些module? 我看看有什么module或者service可以去掉
。还有一个问题:你的extension文件里那个011那个加在[from-internal]下面,但是
sip文件里voipbuster的trunk设置的是context=ext-did,这个有问题吗?
还有我用ps看的时候这个 /opt/sbin/asterisk -q 有时出现了6次,有时出现11次,为
什么这么多进程呢?

voi
a9
发帖数: 21638
43
知道了,我先禁用了wan,然后在router里看到dhcp的地址,ssh上去,
用户名:root,密码stxadmin
杀掉hbwd进程:killall hbwd
然后,
mount -o remount,rw /
mount -o remount,rw /
vi /etc/init.d/rcS
注释掉:#/etc/init.d/hbmgr.sh start
然后
mount -o remount,ro /
/sbin/halt
启用wan,然后拔电源,接上电源。过会儿再ssh上去,执行这些命令。

果不
以。
c**s
发帖数: 771
44
Thanks.
found fdisk under /sbin
managed to install Debian lenny, move on to Asterisk and Freepbx.
j******a
发帖数: 1599
45
那你最后怎么解决的step 4的问题的呢?
重装?我遇到了和你一模一样的问题,但是我没有改什么用户名什么的,不过设密码的时候好像出错了?
log:
freepbx-2.7.0/SQL/cdr_mysql_table.sql
+----------------------------------------------------------------+
| Changing maximum upload limit in PHP |
+----------------------------------------------------------------+
+----------------------------------------------------------------+
| Setting permissions for asterisk user |
+----------------------------------------------------... 阅读全帖
c*****d
发帖数: 6045
46
用/sbin/ifconfig看配置是否生效
h****f
发帖数: 200
47
为什么我安装完没有这个/etc/init.d/asterisk
我自己在rc.local里加了一句/usr/sbin/asterisk后让asterisk自动启动也出
现这个CPU100%问题
首页 上页 1 2 3 4 5 (共5页)