服务器 Gind.cn
  • Linux
  • Windows
  • Ubuntu
  1. 服务器 Gind.cn
  2. configuration cron linux
  3. Crontab /etc/profile.d
Intereting Posts
两台机器和dockernetworking零停机部署 每次清除我的nginx日志文件时,是否必须重新启动服务器? Apache的htcacheclean不能扩展:如何驯服庞大的Apache disk_cache? 计算机在错误的站点指向DC 如何从文件中筛选Windows 2003安全日志? 在带AD集成的RHEL / CentOS上安装和configurationTACACS + 无法用vmware工作站打开文件 将1.2.1上的Cassandra标记从4更改为256 哪里可以获得ADFS令牌签名证书模板? 我如何显示一个string属性? 当networking位置是“域networking”Windows 2008 R2时,无法连接到SMB共享 硬盘写入caching被禁用时性能更好? (HGST Ultrastar 7K6000和媒体caching行为) Exchange 2003 SMTP不从发件人收到RCPT 是否可以在同一个UTP Cat6电缆上同时连接两个以太网连接? 帮助在Centos上的tmux1.5

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