免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 3272 | 回复: 10
打印 上一主题 下一主题

[SCO UNIX] 一个关于SCO开机程序启动的问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-09-27 23:34 |只看该作者 |倒序浏览
SCO 506里面有没有类似WINDOWS中MSCONFIG里的启动或程序菜单中的启动菜单,就是一开机用某个指定用户登录后自动执行一个设定好的程序,这个功能在哪里实现?

论坛徽章:
1
15-16赛季CBA联赛之北控
日期:2022-03-04 22:35:50
2 [报告]
发表于 2003-09-28 06:27 |只看该作者

一个关于SCO开机程序启动的问题

系统自身是没有这样的程序的。

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
3 [报告]
发表于 2003-09-28 08:33 |只看该作者

一个关于SCO开机程序启动的问题

init 调用 /etc/inittab
但是象msgconfig 这样的工具,系统自身没有

论坛徽章:
0
4 [报告]
发表于 2003-09-28 09:49 |只看该作者

一个关于SCO开机程序启动的问题

也只能用init 调用 /etc/inittab
除非你用双机容错的软件,
该软件会随系统的启动而自动启动

论坛徽章:
0
5 [报告]
发表于 2003-09-28 21:39 |只看该作者

一个关于SCO开机程序启动的问题

原帖由 "bin52311" 发表:
也只能用init 调用 /etc/inittab
除非你用双机容错的软件,
该软件会随系统的启动而自动启动
   

谢谢各位!这个是我机子的:

# cat /etc/inittab
#       @(#) init.base 83.1 99/10/21
#
#       Copyright (C) 1988-1999 The Santa Cruz Operation, Inc.
#               All Rights Reserved.
#       The information in this file is provided for the exclusive use of
#       the licensees of The Santa Cruz Operation, Inc.  Such users have the
#       right to use, modify, and incorporate this code into other products
#       for purposes authorized by the license agreement provided they include
#       this notice and the associated copyright notice with any such product.
#       The information in this file is provided "AS IS" without warranty.
#
# /etc/inittab on 286/386 processors is built by Installable
# Drivers (ID) each time the kernel is rebuilt. /etc/inittab is replaced
# by /etc/conf/cf.d/init.base appended with the component files in the
# /etc/conf/init.d directory by the /etc/conf/bin/idmkinit command.
#
# To comment out an entry of /etc/inittab, insert a # at start of line.
#
bchk::sysinit:/etc/bcheckrc </dev/console >;/dev/console 2>;&1
ifor::sysinit:/etc/ifor_pmd </dev/null >;/usr/adm/pmd.log 2>;&1
tcb::sysinit:/etc/smmck </dev/console >;/dev/console 2>;&1
p6u:234:bootwait:/etc/p6update </dev/console >;/dev/console 2>;&1
ck:234:bootwait:/etc/asktimerc </dev/console >;/dev/console 2>;&1
ack:234:wait:/etc/authckrc </dev/console >;/dev/console 2>;&1
is:S:initdefault:
r0:056:wait:/etc/rc0  1>; /dev/console 2>;&1 </dev/console
r1:1:wait:/etc/rc1  1>; /dev/console 2>;&1 </dev/console
r2:2:wait:/etc/rc2 1>; /dev/console 2>;&1 </dev/console
r3:3:wait:/etc/rc3  1>; /dev/console 2>;&1 </dev/console
sd:0:wait:/etc/uadmin 2 0 >;/dev/console 2>;&1 </dev/console
fw:5:wait:/etc/uadmin 2 2 >;/dev/console 2>;&1 </dev/console
rb:6:wait:/etc/uadmin 2 1 >;/dev/console 2>;&1 </dev/console
co:2345:respawn:/etc/getty tty01 sc_m
co1:1:respawn:/bin/sh -c "sleep 20; exec /etc/getty tty01 sc_m"
c02:234ff:/etc/getty tty02 sc_m
c03:234:respawn:/etc/getty tty03 sc_m
c04:234:respawn:/etc/getty tty04 sc_m
c05:234:respawn:/etc/getty tty05 sc_m
c06:234:respawn:/etc/getty tty06 sc_m
c07:234:respawn:/etc/getty tty07 sc_m
c08:234:respawn:/etc/getty tty08 sc_m
c09:234:respawn:/etc/getty tty09 sc_m
c10:234:respawn:/etc/getty tty10 sc_m
c11:234:respawn:/etc/getty tty11 sc_m
c12:234:respawn:/etc/getty tty12 sc_m
sdd:234:respawn:/tcb/files/no_luid/sdd
tcp::sysinit:/etc/tcp start < /dev/null >; /dev/null 2>;&1
Se1a:234:respawn:/etc/getty tty1a m
Se1A:234ff:/etc/getty -t60 tty1A 3
Se2a:234:respawn:/etc/getty tty2a m
Se2A:234ff:/etc/getty -t60 tty2A 3
http::sysinit:/etc/scohttp start
scl:bnce:/etc/rc2.d/P86scologin start no_switch
sclb:2:bootwait:/etc/scologin init


能大概说说什么意思吗,比如我要启动一个程序在启动時,我怎么做?    还有“双机容错的软件”是什么软件,我用过一个餐饮管理系统,SCO下跑的,每次输入UID后(无密码)直接自动进入那个程序了就,我就想知道这个怎么做的,都没有出现 #

论坛徽章:
0
6 [报告]
发表于 2003-09-28 22:18 |只看该作者

一个关于SCO开机程序启动的问题

"我用过一个餐饮管理系统,SCO下跑的,每次输入UID后(无密码)直接自动进入那个程序了就,我就想知道这个怎么做的,都没有出现 #"

实现这个只需要在用户的.profile文件中加入你要执行的程序就行了。
yhl1642 该用户已被删除
7 [报告]
发表于 2003-09-28 22:55 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
0
8 [报告]
发表于 2003-09-28 23:00 |只看该作者

一个关于SCO开机程序启动的问题

inittab 只是运行级对应表
在用户的.profile设置吧
或是在/etc/rc2.d

论坛徽章:
1
15-16赛季CBA联赛之北控
日期:2022-03-04 22:35:50
9 [报告]
发表于 2003-09-29 08:00 |只看该作者

一个关于SCO开机程序启动的问题

在/etc/rc2.d目录下创建一个以S开头的文件,里面写上需要执行的程序即可。

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
10 [报告]
发表于 2003-09-29 08:35 |只看该作者

一个关于SCO开机程序启动的问题

原帖由 "fyongya" 发表:
"我用过一个餐饮管理系统,SCO下跑的,每次输入UID后(无密码)直接自动进入那个程序了就,我就想知道这个怎么做的,都没有出现 #"

实现这个只需要在用户的.profile文件中加入你要执行的程序就行了。
   
说的对,按照楼主的需求,不是到系统启动的,加到.profile 就行了
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP