简体   繁体   English

使用数据库进行Perl脚本处理

[英]Perl script handling with database

Currently we are having perl script which will interact with database and will prompt user password for connecting to database. 当前,我们有perl脚本,它将与数据库交互并提示用户密码以连接到数据库。 Currently we are running that script manually and giving password to proceed. 目前,我们正在手动运行该脚本,并提供密码以继续。 But here we are planning to run that script at late night where it should not ask user password and interact with database and proceed with execution. 但是在这里,我们计划在深夜运行该脚本,该脚本不应询问用户密码并与数据库进行交互并继续执行。 Is there any way we can do that like encryption/decryption something like that. 有没有办法像加密/解密那样做到这一点。 Please help 请帮忙

If the password becomes a parameter of the script (passed as environment variable for example to avoid being visible in ps), it becomes visible only to people logged with the same account. 如果密码成为脚本的参数(例如,传递为环境变量以避免在ps中可见),则该密码仅对使用同一帐户登录的用户可见。 It may be possible to create a secured dedicated account to launch this script. 可以创建一个安全的专用帐户来启动此脚本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM