Tag Info

Hot answers tagged

33

You should use the at command: $ sudo at 6:45 [sudo] password for root: warning: commands will be executed using /bin/sh at> poweroff at> <EOT> Don't type the <EOT>, but press Ctrl+D at the second at> prompt. The significant advantage of using at over using shutdown with a TIME argument, is that it involves real, persistent, ...


19

You can use shutdown: sudo shutdown -h 06:45 & And to check it: ps -aux | grep shutdown If you want to cancel it: sudo shutdown -c This assumes of course that the shutdown time has already passed.


5

You can use the following unit file as a template: [Unit] Description=A Test Service That Prints the date After=network.target [Service] EnvironmentFile=-/etc/sysconfig/myservice ExecStart=/usr/bin/bash -c "/usr/bin/date >> /now.txt" $MYSERVICE_ARGS [Install] WantedBy=multi-user.target Save it in /etc/systemd/system/ with a .service file extension ...


4

It's not quite that SIGTERM isn't working, it's that the application doesn't react to it the way you are hoping. Generally, the purpose of catching SIGTERM is to do some tidying up, such as syncing data to disk, etc., before exiting. There's no enforced requirement, however, that the process actually exit, so if something goes wrong during whatever it does ...


3

Easiest way apt-get install firefox this will update to new one or which firefox this will give you path of firefox then replace the same sudo ln -fs $HOME/Desktop/firefox/firefox /usr/bin/firefox For Ex. which firefox /usr/bin/firefox sudo ln -fs $HOME/Desktop/firefox/firefox /usr/bin/firefox


3

There are two ways to fix this: You can alter your $PATH variable so that the directory where the new firefox version lives is checked before any other directory, by running the command export PATH=$HOME/Desktop/firefox:$PATH And if you add that same command to your .bashrc, all your future sessions will have the new PATH too. You can use ln to symlink the ...


3

A crontab created with crontab -e and listable with crontab -l should not have a user specified for the command. Your entry should read: * * * * * /home/test.sh Or alternatively put the line that you have in /etc/crontab instead. From man 5 crontab (section EXAMPLE SYSTEM CRON FILE): # /etc/crontab: system-wide crontab # Unlike any other crontab you ...


2

As httpd is working as a front-end, then clients connecting to the service will be communicating with httpd and not tomcat; httpd takes care of forwarding the request to tomcat and passing the response back to the client. When you implement SSL then the logical place for doing that is in httpd; hence httpd is where the SSL processing needs to be done. Only ...


2

You can at least find out what's wrong by running: xfs_repair -n /dev/mapper/rhel-root -n runs xfs_repair in no-modify mode. If it's complaining about it being mounted and writeable, you might want to try re-mounting it read-only (mount -r -o remount <device>), but this will probably just come back with '/dev/mapper/rhel-root is busy'. I'd go with ...


2

It's here buried in a table on the Fedora Project's site, on a page titled simply: Red Hat Enterprise Linux.      


1

Why you downloaded the version, you apparently did not install it in one of the directories in the PATH variable. When you execute simply 'firefox' it will find firefox in the first directory using the PATH directory. If you execute firefox with a more fully qualified name it will use whatever is found in that SPECIFIC directory only. The easiest thing to ...


1

There's a standard custom script /sbin/ifup-local. It is called for each adapter. My script obtains the ip and hostnames and adds them to /etc/hosts #!/bin/bash # /sbin/ifup-local set -e fn_get_ip() { ip addr show dev "$1" | sed "s,.* inet \([^/]*\)/.*,\1,;t;d" } fn_aaa() { ip=`fn_get_ip "$1"` hostnames=`hostname | sed "s,\([^.]*\)\..*,\1 &,"` ...


1

As Hauke Laging said, systemctl enable ... will print out information about what is being done. For instance, on my Arch system, if I enable the dhcpd service on interface enp0s3... $ systemctl enable dhcpcd@enp0s3 Created symlink from /etc/systemd/system/multi-user.target.wants/dhcpcd@enp0s3.service to /usr/lib/systemd/system/dhcpcd@.service When ...


1

Who ever is managing this box hsa done a pretty big no no. You're mixing YUM repositories that are offering the same packages. Notice these lines, for example: Error: Package: perl-core-5.10.1-136.el6.x86_64 (@anaconda-RedHatEnterpriseLinux -201311111358.x86_64/6.5) ...


1

The ~/.bashrc file does not always get read: see Bash Startup Files in the manual. Does your ~/.bash_profile (or ~/.profile) invoke your .bashrc file? Often this appears in .profile files: # if running bash if [ -n "$BASH_VERSION" ]; then # include .bashrc if it exists if [ -f "$HOME/.bashrc" ]; then . "$HOME/.bashrc" fi fi


1

Based on this snippet it sounds like the answer would be no you cannot do this and still see the files from the initial mount. Excerpt NFS filesystems appear to be "normal" filesystems on the client, which means that they can be mounted on any directory on the client. It's possible to mount an NFS filesystem over all or part of another filesystem, ...



Only top voted, non community-wiki answers of a minimum length are eligible