General :: Wait For Ssh Remote Commands?

Apr 14, 2011

I'm running a scripts that launches remotely another script with ssh.re's the script:main.sh

Code:
ssh user@remote "~/script1.sh"
ssh user@remote "~/script2.sh"
Here's the remote script:

View 9 Replies


ADVERTISEMENT

General :: Cut And Paste Boot Commands From PC To ILO Remote Console?

Jul 1, 2011

I downloaded rhel 5.5 CD 1 iso to my PC, and used it as a virtual CD-ROM to kickstart HP DL380 G4.Here is my questions:

1. how can I cut and paste boot commands (very long strings) from my PC to iLO remote console?
2. is there anyway I can get "boot prompt" by ssh to iLo's IP?
3. after kickstart, I want to eject the virtual CD-ROM / media, I have tried the following method in the kickstart profile, but all failed, after reboot, it still boot from the virtual CD-ROM. So how can I reject the virtual CD-ROM for rhel 5.5 kickstart?

View 1 Replies View Related

General :: Removing Previously Type Commands At A Remote Server?

Aug 7, 2010

I am ssh'ing into a remote server and then su'ing to root.The problem is that sometimes, I have not paid enough attention to the console message, and I have accidentally typed in the root password at the command prompt (when for example, I had failed to provide the root password correctly the first time - so su prompt went away).

I remember reading somewhere that a history of commands typed at the console is kept somewhere.I have 3 sub questions

Where (which folder) is the file stored?

Can I edit that file and remove the root password from it?

Being the paranoid person that I am, I wonder if there is a more secure way of logging into my server - other than ssh (or am I being TOO paranoid?)

My server is running a headless Ubuntu 10.0.4

View 1 Replies View Related

Software :: Using Expect To Execute Remote Commands?

Dec 21, 2010

I'm trying to get Expect to execute commands on a remote server using SSH with username/password authenticationMy current expect script is

Code:
#!/usr/bin/expect -f
spawn ssh -tq root@my_hostname "whoami"

[code]...

View 2 Replies View Related

Ubuntu :: Ssh Commands Execute Locally Instead Of On The Remote Computer?

Jul 12, 2010

I can ssh to the remote computer OK, but the commands execute on the local machine, not the remote machine as they should. After much frustration I did the following hoping to clear the problem. I turned off all machines on my LAN, the hub and the router. I then rebooted everything in the reverse sequence - cable modem, router, hub, and then the computers.Then I reinstalled ssh on both machines.

sudo apt-get purge openssh-server openssh-client
sudo apt-get install openssh-server openssh-client
sshd in now running and port 22 shows on both machines. However the problem persists.

View 5 Replies View Related

Software :: Execute Script To Run Commands On Remote Server

Jan 1, 2010

I have an immutable script on server A, it executes a maintenance command on the remote servers where elevated privileges are needed. I want the developers on server A to execute the script and run it without being prompted for a password. The script contains scp root@serverB and ssh 'root@serverB', if run as root it runs great since I am using ssh keys. However, as regular users they are prompted for a password. If I do created their group on server B...etc and give the group sudo it would still ask for passwords right? Can I overcome this?

View 1 Replies View Related

Software :: Have Scripted Ssh Commands Appended To The Remote History?

Jan 17, 2011

If I interactively ssh to a remote host and enter commands, I can up-arrow through the command history.If a script ssh's to a remote host and calls a command, it does not get appended to the history.How can I configure ssh or sshd so that this happens? I'd like to be able to have those scripted commands available in the history file when I log back in interactively.

View 2 Replies View Related

General :: Make Shutdown Wait Until Service Is Stopped?

May 6, 2011

I have a third party application with a database.

I have created the service but it does not wait for the database to shutdown before the systems continues with the shutdown.

This results in the database being seen as crashed.

here is my stuff i did.

CACHE START AND STOP SCRIPT FOR REDHAT

#vi /home/cacheusr/cache_ctrl
Insert below
#!/bin/sh
#
# /etc/rc.d/init.d/cache_ctrl
# Cashier Control Script
#
# chkconfig: 2345 55 01
code....

View 9 Replies View Related

General :: Sync Server And Client - Wait Over A Minute For The Changes To Be Downloaded?

Oct 17, 2010

I work as a part-time consultant developing webpages, both back end and front end.When developing a back end application I'm using a server running ubuntu server edition to host the application while I'm developing it.The problem comes when I want to upload my changes to the server, now I'm using Dropbox both on the client and the server, the problem is that sometimes I have to wait over a minute for the changes to be downloaded (when I'm working out-of-home that is) so I'm looking for a better alternative. My options seems to be:Some open source version of dropbox which syncs directly to my server (haven't found anyting that sounds viable though)

Mount my server via some protocol (NFS, SSHFS etc)

Push changes manually via FTP, git, svn or something else

I'd like the sync to be as transparent as possible, meaning I'd like to do as little manual work as possible.The client I'd like to connect runs either OSX or Ubuntu.The ultimate solution would be to use NFS + VPN though that would be alot of work to set up and also I don't like the security in NFS (matching UID's doesn't seem very secure to me)

View 3 Replies View Related

General :: Grub Loading Wait Error 21 - System This Way For Hours

May 16, 2010

Grub loading wait error 21 - system this way for hours

View 4 Replies View Related

General :: Make Shell Script Wait For A Particular Key Pressed In Order To Proceed?

Jan 30, 2010

i've been searching all over the internet for a way to let the user press a particular key let's say 'y' without the user having to press [Enter] as confirmationfor yes, this would then run another function.

Quote:

Book Inventory Summary Report:-

Title, Author, Price
______________________________
StarWars EP1, G.Lucas, $49.59
Harry Potter, Rowling, $45.98
The Matrix, Mr. Smith, $53.98

Press 'y' to make a copy of this result into a file or 'n' to return to the main menu.. I understand the "press any key to continue" would go something like

Code:

read -sn 1 -p "Press any key to continue.." But i try many different ways of getting the "press a particular key" function, and none of them works.

View 5 Replies View Related

Ubuntu :: 10.04: RC Vs Wait Til The 29th

Apr 23, 2010

I read recently that, if I install the 10.04 RC on my laptop I dont have to worry about reinstalling the 10.04 'official' version that comes out on the 29th.

View 2 Replies View Related

Fedora :: Proliant G4 Becomes Non-responsive @ 100% Wait?

Jul 1, 2011

I've installed both Fedora 15 x64 and Fedora 14 x64 on an HP Proliant DL380 G4 with the HP SmartArray SCSI controller, 2x146GB UW320 SCSI drives.The server was running RH v4 with a hardware RAID 1 with uptime of 400+ days with no issues.I broke the HW RAID and made 2x volumes and software RAID. I have another identical server with 4x 146GB UW320 SCSI drives with Fedora 12 x64 and SW RAID, so I figured 14/15 should be the same process.What happens is the server runs great for a while, but when I leave it for a few hours, it becomes non-responsive. I've re-installed 15 and 14 multiple times now and also installed NRPE, which shows load increasing to the point to where the server is non-responsive. It hits high load levels (as reported by NRPE). The load levels appear to be increasing over time. Such as last night:

log off at midnight, load average 0/0/0
2:03 am - WARNING - load average: 9.91, 8.85, 6.75
3:03 am - WARNING - load average: 16.91, 15.86, 14.47

[code].....

View 4 Replies View Related

Ubuntu :: Shutdows Should Wait On Process?

Aug 24, 2011

I have a small question.We use a backup program, that start an sepparat process with the name SIDB.When the server get an shutdown command. The normale back-up process is stoped. But the SIDB is not stopped correctly. But the shutdown proces should wait till the SIDB proces is stoped, and then proced with the shutdown process

View 2 Replies View Related

Ubuntu Servers :: High I/O Wait After Every Reboot?

May 19, 2010

The Machine

Core 2 Duo E4600
2GB DDR2 RAM (1 stick)
Intel ICH10R based motherboard (tried an ICH9R aswell)
4-port SATA controller (PCI Sil 3114)
O/S: Ubuntu Desktop x64 10.04 LTS (using 'desktop' because I like having a remote desktop)

The Storage Setup Disks: Assorted selection of 9 disk. 750GB, 1000GB and 1500GB Seagate and Western Digital disks. The disks are joined through a standard LVM2 configuration. I don't know the LVM term, but normally you'd call it a JBOD setup. On that LVM device, I've put a cryptsetup device, made with the LUKS tools (aes-xts-plain 256) On the cryptsetup device, I've created and mounted an EXT4 partition.

All in all, a completely standard LVM2 and LUKS setup, running EXT4. After a reboot, I proceed to unlock my cryptsetup encryption device, and then mount the EXT4 partition. All is well, the mount is accessible and everything looks fine. I then try to send a file to the mount, via Samba. After a few hundred MB written, the I/O wait goes berserk. It stays at 50% (dual core setup remember). The system becomes unresponsive to network commands (can't browse samba) for about 5-10 minutes. When it finally responds, the I/O wait is gone and everything is now fine. I can write and read hundreds of GB's of data without any issues at all. I can benchmark and stress all disks perfectly fine and no logs are showing disk errors.

I tried monitoring my disks with 'iostat -d 2' while the I/O wait was happening, and there is some slight Blk_read/s activity on 1 disk at a time. First for example /dev/sda is showing a little Blk_read/s acitivty, then it jumps to the next disk, and when every disk has show that slight Blk_read/s activity (500-800 or so) the problem is gone and the I/O wait is no more. I've tried changing motherboards, switching disks around on the controllers, checking individual disks, replacing disks and I've tried different versions of Ubuntu. The problem however persists. I could see it being a network issue, possibly a driver issue. But since the NIC is a standard RTL8111 on-board it seems unlike that the problem wouldn't be more widespread since this NIC is litterally being used everywhere. I did change my motherboard, so a faulty NIC seems unlikely twice in a row.

View 9 Replies View Related

Ubuntu :: Keyboard Delay Wait Startup / Fix It?

Jan 21, 2011

I'm running lucid with a seal shield seal pup keyboard.

when i turn the thing on, after it boots, i have to wait about 2 minutes for the keyboard to start working.

View 1 Replies View Related

Ubuntu :: Wait Command After Execution In Terminal?

Mar 14, 2011

How do I create a command to launch a program and then have the terminal wait for a specified time and then move on to the next command?I'm wanting to create a startup script, and I need program B to wait until program A has finished loading up.

View 2 Replies View Related

Ubuntu :: Make Conky Wait To Start?

Apr 25, 2011

how do I make conky wait to start? I have read the post how to do it but when I try it says file not found.

View 9 Replies View Related

Ubuntu :: Grub Loading - Wait Error 22

Apr 30, 2011

I applied all updates to my Kubuntu 10.04 installation, and shutdown and went to bed. Booted up this morning and found:
[code]...

This error is returned if the module load command is used before loading a Multiboot kernel. It only makes sense in this case anyway, as GRUB has no idea how to communicate the presence of location of such modules to a non-Multiboot-aware kernel. lets re-install GRUB. So I booted up my live CD, and ran:

sudo GRUB
find /boot/grub/stage1
root (hd0,0)
setup (hd0)
quit
sudo shutdown -r now

Same error. So I started looking around, and most complaints of this particular error seem to be dual boot environments, which I found rather odd, as I have never dual booted this machine.....

View 1 Replies View Related

Server :: Wait For I/O Blocks Everything (Debian Stable)?

Apr 11, 2010

I'm running home server on Debian stable with DHCP, DNS, Mail, VDR, Filesharing and my Weatherstation as main services. The filesharing is used to mount homes at clients.
The machine features an Athlon BE-2300, 3GB RAM, GB-LAN, 1TB and 1.5TB SATA HDD plus HDDs for backups. Mainboard has an NVIDIA chipset with

Code:
nVidia Corporation MCP65 SATA Controller (rev a3)
The primary disks are running in RAID1 + LVM.

[code]...

View 2 Replies View Related

Software :: Check Which Processes Are In Wait Cpu Cycle?

Aug 10, 2010

My mail server is presenting a high wait time (see attachment) that sometimes reaches 80%. How can I check which processes are doing that?

View 1 Replies View Related

Software :: Wait For One Process To Stop Before Starting Another?

Jul 13, 2011

I have a certain process (or processes) and I want to wait for them to finish before launching another one. Do I have to make a while loop checking the process for this task or is there a ready command for it?

View 3 Replies View Related

Software :: Write A File - Then Wait For Someone To Print It

Nov 11, 2009

The application I am using writes a report file (ascii), but I am not able to print it, because from inside the application I have no access to the shell and so cannot invoke any printing command (lpr, lp, ...). Is there a tool/daemon which waits for a file in a given directory, takes it, and sends it to a printer?

View 6 Replies View Related

Programming :: C++ Cin Doesn't Wait For Input By Operator

Jan 4, 2010

I am trying to learn C++.I implemented a simple archive program, and I am in a situation in which the user is prompted by a menu to make a choice.So I have some cout instruction to illustrate the possible choices and then

int choice;
cin>>choice;

and everything works fine.I introduced this code in a "while" loop that checks wether the choice made by the user is valid or not:

bool check=true;
int choice;
while(check)
{
cin>>choice;
if(the choice is valid) {...;check=false}
else cout<<"please make an other choice"
}

What is happening is that if by mistake the user introduces a character in place of a number, the loop repeats indefinitely because the program, when it get to the "cin" instruction, does not pauses to wait for a new input.

View 7 Replies View Related

Programming :: Read From Stdin In Perl Do Not Wait For EOF?

Apr 28, 2010

I am trying to read one line at a time in perl and not wait for stdin eof to start the action:

Code:
foreach(<STDIN>){
<do something>
}

if i pipe ls into it, it waits for ls to be done before doing the action.

View 1 Replies View Related

CentOS 5 :: Application Hangs In Conditional Wait?

Dec 18, 2009

I am facing the following issue. My application runs perfectly in red hat linux(32bit, 64bit physical m/c and 32 bit vmWare m/c) and in one version of centOS(32bit physical m/c - don't remember the version:Sorry). However when I am running the same application in CentOS 5.4 (64bit version) I face the following issues -

a. the application gets stuck in the conditional wait even though the signal is sent after the application has moved to conditional wait. b. vsftpd service start fails from within the application even though the service starts and stops peroperly from console.

View 6 Replies View Related

Fedora :: Make BASH Script Wait For A Few Minutes?

Nov 26, 2009

I'm using bash script now,and I want have a script that can do like this: first ,tell me it will shut down ,and then shut down.My script looks like this:

#!/bin/sh
/usr/bin/curl $stop_page
shutdown -h now

[code]...

View 4 Replies View Related

Ubuntu :: Bash Script Will Not Wait For Nautilus To Exit?

Oct 24, 2010

I'm having trouble with a bash script. Does anyone know why this doesn't work?

Code:
nautilus ./ &
wait $!

I'm writing a script which will extract a series of .rar files, present the extracted files to the user in nautilus so they may modify them, then when the user closes nautilus, the modified files are packed back into the archive.

View 9 Replies View Related

Server :: Tools For Monitoring Disk Io & Io Wait Times

Mar 29, 2010

I have a scenario where I want to monitor at disk performance (cpu and memory also if possible) on a RHEL 5 server functioning as a NAS. I have several machines that backup content to this server via scheduled cronjobs and I'm curious to see if the machine is hitting a bottleneck under load.I attempted to setup cacti on one of our LAMP servers and had a miserable time due to running PHP 5.3 and deprecated function issues.Can anyone recommend an alternative keeping in mind I have only very basic experience with SNMP?

View 1 Replies View Related

Software :: Bash Script: Wait For Input From Kdialog Before Doing Sth?

May 27, 2011

The goal of the script is the following:Whenever I leave my house, my wife comes to my computer to check her mails (She has two computers of her own but they have a dangerous operating system, so they have been banned from the internet).She shuts down qbittorrent so as to download all her mails, and she forgets to execute it again on 98% of the times. End result: my computer is sometimes turned on for 10 hours doing absolutely nothing.I had therefore two choices: a) get on my wife's nerves until she gets the problem or b) write a bash script.If you are married, you will understand that bash scripts are easier to deal with than spouses.Ergo, I wrote the following script:

Code:
#!/bin/bash -x
while true ; do

[code]...

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved