服务器 Gind.cn
  • Linux
  • Windows
  • Ubuntu
  1. 服务器 Gind.cn
  2. configuration cron linux
  3. Crontab /etc/profile.d
Intereting Posts
Postfix / Dovecot – 多个域和多个Linux帐户 MySQL不能find我的表? 用iptables和ipset的docker容器的IP白名单 禁用Kerberos密码 Apache只为某些东西,restlighttpd 用于在Ubuntu上运行PHP的www数据用户的umask 限制与iptables的docker集装箱外部连接的步骤? 如何在开放式访问的计算机实验室中安全Macintosh客户端? Linux的SSH服务器 – fail2ban将不会禁止IP地址 MXlogging警告导致电子邮件不被发送? 通配符ssl证书。 在IE中给错误 你如何select你的IP地址? 在/ etc / apache2 / envvars中创build多个variables? 如何在coreos docker容器和舰队上使用nginx 事件ID:861 – Windows防火墙检测到应用程序侦听传入的通信

Crontab /etc/profile.d

我有一个从交互式shell运行良好的crontab脚本。 但是,从crontab运行时,它会失败,因为它不运行/etc/profile.d/中的脚本(例如/etc/profile.d/java.sh)

什么是解决这个问题的最好方法?

  • 裸机configuration给客户如何使用PXE
  • 不同帐户的不同SSHauthentication策略
  • 专用Web服务器:双核3.0GHz四核2.4GHz
  • 有没有办法提交一批命令到思科路由器,并让他们从路由器执行?
  • 在postfixconfiguration文件中逃脱美元符号

用以下命令启动shell脚本:

#!/bin/bash -l 

这导致bash作为loginshell启动,这意味着它将读取/ etc / profile和〜/ .bash_profile。

在你的crontab上设置SHELL:

 SHELL=/bin/bash * * * * * # your_job 
  • 安装Trac而不在Apache中设置VirtualHost?
  • WinXP和Win7不同的强制用户configuration文件
  • 如何恢复与puppetconfiguration
  • GeoIPconfiguration到nginx中
  • 是否有可能创build一个软件RAID 10使用SAN LUN的服务器提供4path?
  • 我应该避免使用git来跟踪具有单独历史logging的单个文件,例如/ var / named?
  • zfs设置在哪写的?
  • 冗余服务器应该有完全相同的configuration,还是略有不同?
  • 在哪里放置Nginx IP黑名单configuration文件?
  • imagemagick的高效服务器configuration

  • © 2017 服务器 Gind.cn
  • Topics
  •        
  • Powered by Server
  • Privacy Policy