Script Help To Shutdown And Start

Dear Friends,

I am new to scripting. I want a help on script to schedule the shutdown and start up . I am using SUSE Linux system. Can some one guide me please

every night shutdown at 7pm & start it at 7am the next day during the weekdays. On the weekends, the server only needs to restart at 7am on Mondays.

Looking forward for help

Thank you

Regards

pearl


Similar Content



How To Do A Remote Shutdown

Is it possible to do a remote shutdown on a windows pc from a suse server and if so how?

System Shutdown

how to shutdown linux system as regular user using command line?

Shutdown After Authentication?

Hi,
This may be silly but (paranoid as I am) I do find this strange, my laptop (Xubuntu) had an update earlier, and as I wanted to shutdown, the system wanted an authentication, I hit cancel and the system logged me out, I logged back in and did not have to authenticate anymore to shutdown...glitch or..."trouble"?
Thanks
Thor
PS - I ran RKhunter and it found nothing...

Does Shutdown Command Broadcast Warning To Samba Users?

If I do a
shutdown -r 03:15 &
will this only broadcast the shutdown warning messages to people logged into the server directly, or will this also warn users who are connected to samba shares on this server?

How To Shutdown X Server?

I am trying to upgrade/install Nvidia drivers. Instructions say that I need to shutdown x server to do so. How in the world do I do that? I can't seem to find any help for that on the net anywhere.

Kali Linux 1.1.0 Debian Stuck At Shutting Down.

Hi,
This has never happened before. My system has been stuck while shutting down for almost 6 hours now. After clicking the shutdown button, the top bar and bottom bar on the screen disappeared and now all i can see is my wallpaper, the computer icon and my pointer, cant move anything. What can I do to avoid doing a hard shutdown?

Ubuntu 14.04 LTS Not Shutting Down On Acer Aspire ES1 512

Hi,

I am new to the Ubuntu OS and really enjoying it but currently have an issue with my Acer Aspire ES1 512 laptop with regards to getting the machine to completely shutdown or restart.

It is not a dual boot setup, 100 Ubuntu 14.04 LTS install but when I attempt to press the "Shutdown" option at the top right, it looks like the machine is shutting down, shows the Ubuntu logo with dots but does not physically turn off the machine.

At the moment, I have to physically press and hold the power button.

FYI, I have also tried sudo shutdown -h now

Any ides/help would be great as it's the only issue I am currently experiencing.

Thanks.

?? How To Auto Mount Logical Volume Before Transmission-daemon Starts At Start Up

I have been using an old computer to download my torrents and this has been my usual routine:

1. Press the power button.
2. Connect to the computer through Putty
3. Log in
4. Gain su privileges

Startup Commands:
Code:
/etc/init.d/transmission-daemon stop
apt-get update
mount -t ext4 /dev/vgTransmission/lvTransmission /mnt/transmissionVault
/etc/init.d/transmission-daemon start

Shutdown Commands:
Code:
/etc/init.d/transmission-daemon stop
umount /dev/vgTransmission/lvTransmission
shutdown -h now

I was wondering if there is a way to configure a computer to automatically mount a logical volume “before” the transmission-daemon starts at boot up (note my first Startup Command).

I think the instructions here are related to what I want to do, but I want to get some advice before I attempt to do anything dangerous:
http://tille.garrels.be/training/tld...#sect_04_02_04


My perfect scenario would be:

Startup Routine:
1. Send WakeOnLan magic packet to computer to turn it on.
2. Computer boots up, mounts the transmissionVault logical volume
3. Wait 10 seconds to ensure that the logical volume has finished mounting
4. Start transmission-daemon

Shutdown Routine:
Send WakeOnLan magic packet to turn off computer, i.e.: Execute “shutdown -h now”
The shutdown command should include:
1. Stop transmission-daemon
2. Wait 10 seconds to ensure that transmission-daemon has finished shutting down
3. Umount transmissionVault logical volume




Recently the Ethernet port of my transmission box has stopped working, so I went ahead and swapped the motherboard with another old motherboard, added a few hard drives, installed a fresh copy of Debian, and re-created the LVM logical volume for transmissionVault. I pretty much have a fairly stock system running at the moment.

Running a headless 3.2.0-4-amd64

Querying Up Jobs In A Multi-core Environment, Via A Shell Script

Hi!

I am running a script per nohup ./script.sh:
#!/bin/bash
Do.stuff -some_parameters &
Do.stuff -some_parameters

I have 64 cores at my disposal, so i start a script with 60 lines (ignoring 4 cores to be free for allday-jobs). I have to do this for ~800 jobs. A job is done within 20 hours, so each morning i come in, start a script with 60 lines, and come back the other morning.

Today i was thinking...would it be possible to query my jobs? So, whenever a core is free, start the next job from the list given in the script?




I know, i am expected to have already tried things out. But seriously, i cant. This is way beyond my skill level. I am just asking to avoid coming to the lab this weekend

No Desktop Icons On Boot.

Hello, I have been using Petra for nearly a year.

I shut down every night, and the system has repeatedly functioned properly on every boot.

Recently and not always, the system boots and I have my desktop background but without any icons or any tray applets.

When this occurs, I can do nothing from the desktop and I must shutdown using the manual stop button.

When the unit shutsdown, I press the start button and the unit has booted normally, with desktop icons.

All of the desktop icons were created using Chrome.

Is there any way of curing this problem short of reloading the OS?

The machine is a HP-a1630n, with HDD and 2.4G of ram.

Thanks much,
Jim