CentOS 5 :: Ssh - Execute The Script Remotely / File Not Found?

May 28, 2010

ssh - execute the script remotely / File not found: ''I am uisng amazon ec2-api-tool & ec2-ami-tool

i was unable to execute through ssh. Getting error as File not found: The same script i can able to run directly in client machine successfully. Through ssh i was uanble to run the script remotely Source : myScript.sh ec2-create-volume --size $1 --availability-zone $2 $ssh -i key.pem root@myhost ./myScript.sh 10 us-east-1a In remote machine i have permission for myScript.sh as -rwxr-xr-x

Note:Reference link

1) How to create an ebs image from an existing ec2 instance
2) Building EBS Boot and S3 Based AMIs for EC2 with Ubuntu vmbuilder - Alestic.com

View 1 Replies


ADVERTISEMENT

CentOS 5 :: Can't Execute Things In /tmp Now But Is There A Way To Execute Only One File And No More?

Feb 17, 2011

i created a /tmp partition amd mounted it like this:" mount -o loop,noexec,nosuid,rw /usr/tmpDSK /tmp"
I know i can't execute things in /tmp now but is there a way to execute only one file and no more???

View 1 Replies View Related

General :: Ubuntu - Cannot Execute Basic Commands (ps, Ls, Ifconfig) - File Not Found

May 4, 2011

When I try execute a variety of basic commands (including ps, ls, ifconfig, locate), I receive the error 'no such file or directory'.

Here are some suggestions that I've found online, that I have tried without success: I did a 'whereis ps' and found the file in the /bin/, and have checked that '/bin' appears when I do 'echo $PATH' I did a filesystem check which showed my hard drive as being clean I tried doing a 'sudo chmod 777 ps' but was told that I dont have permission. I don't think permissions for these files would have changed though (and I can't check as I can't run the 'ls' command).

View 3 Replies View Related

CentOS 5 :: Bash: /bin/grep: Cannot Execute Binary File CentOS 5.4

Jun 4, 2011

I am facing problem on executing commands like df -h,ls-l,grep etc in /bin.

it is showing below errors:--
----------------------------------------------------------------------------------
login as: root
root@220.226.102.217's password:
Last login: Sat Jun 4 11:14:20 2011 from 220.227.54.149
-bash: /bin/egrep: cannot execute binary file

[code]....

View 2 Replies View Related

General :: Rhel/centos File Execute And Installation?

Mar 6, 2010

i have new build testing centos 5.4 i386 base how to monitor logs and watch what is going wrong with file. i have 1 zmanda server enterprise i give permission and when i excecute nothing happend

# chmod +x amanda-enterprise-3.0-installer.bin
-rwxr-xr-x 1 root root 0 Mar 6 12:12 amanda-enterprise-3.0-installer.bin
# ./amanda-enterprise-3.0-installer.bin

what i am missing to install it.

View 1 Replies View Related

CentOS 5 :: Search A Text File For The Existence Of Certain Strings And Execute A Command If They Exist, Something Along The Lines?

Feb 23, 2010

This should be simple but I can't seem to find what I am looking for.I want to search a text file for the existence of certain strings and execute a command if they exist, something along the lines of:

if <string> exists
command
or

if <any member of this list exists>
command

I know how to manually search a file with grep, cat, etc., but the "if this exists" part eludes me.

View 7 Replies View Related

CentOS 5 :: Error 15 - File Not Found After Fresh Install Of 5.3 With LVM

Oct 19, 2009

I have just done a reinstall of Centos 5.3 on a dedicated server (via a KVM). My partition arrangement was the default presented to me by the installer:

As you can see, I'm using LVM for everything other than /boot (I need to use LVM for an app I am testing).

On reboot, I get the following:

[QUOTE]

It looks like it can't find vmlinuz-2.6.18-128.el5 in /boot.

I have rebooted using the Centos Install Disk 1 and gone in to rescue mode. Rescue mode mounted my / under /mnt/sysimage, from there I could see that /boot had been mounted from /dev/sda1 as it should be.

However, there was no initrd.image or /vmlinuz-2.6.18-128.el5 under /boot or /boot/grub. Shouldn't the CentOS installer have created these?

Is there anyway I can recover this installation?

View 1 Replies View Related

CentOS 5 :: OpenLdap First Start: Bdb_db_open: Warning - No DB_CONFIG File Found

Feb 22, 2009

I'm stepping out with LDAP for the first time. It's up and running. My Question is really closer to DB4, the Berkely database. When I start the ldap service I get this output:

# service ldap restart
Stopping slapd: [ OK ]
Checking configuration files for slapd: bdb_db_open: Warning - No DB_CONFIG file found in directory /var/lib/ldap: (2)
Expect poor performance for suffix dc=example,dc=com.
config file testing succeeded

View 3 Replies View Related

CentOS 5 :: File Based Locking Initialization Failed - No Volume Groups Found

May 5, 2011

I'm working on a kickstart install to automate a lot of monotony doing installs. When i use the kickstart install i get an error on boot saying "File based locking initialization failed" "no volume groups found". Then it proceeds to boot up with no issues and appears to work just fine. Below is the section of my ks.cfg for creating the partitions: %include /tmp/partition.cfg is included where the partition info usually occurs. The user is prompted in the pre script for how large they would like the partitions to be and then the script below creates the included file with partition info

[code]...

View 3 Replies View Related

CentOS 5 :: Died, Kernel File Not Found \ Get:Error 13: Invalid Or Unsupported Executable Format?

Aug 31, 2011

I have a weird problem with one of my servers (normal PC hardware). I was connected remotely using Putty, doing some stuff, and all of the sudden some commands, like "ls" stopped working, giving a "file or command not found" type of message. I restarted the ssh session, only to find out I couldn't log on any more (access denied). When I got home and rebooted the system, I was greeted with this:Booting 'CentOS (2.6.18-194.el5xen)'root (hd0,0)Filesystem type is ext2fs, partition type 0x83kernel /boot/xen.gz-2.6. 18-194.el5Error 15: File not foundPress any key to continue...Then I searched about this, found out that the files in /boot/grub/menu.lst did not exist at the specified location (/boot/xen.gz-2.6. 18-194.el5). Somehow I managed to find them in another place, copied them in place, and now I get:Error 13: Invalid or unsupported executable format

View 3 Replies View Related

CentOS 5 :: Accessing Centos Remotely On Dyn IP?

Mar 4, 2009

My Centos machine lies on a different location with a dynamic IP. How can access it remotely considering the fact that I am unable to acquire a static IP.

View 13 Replies View Related

CentOS 5 :: Install Guest Os On Vps Remotely?

Jan 10, 2010

i just experimented with virtualbox to make a vps on my centos machine, now i have a question in mind, since this was my local machine so i was able to install the guest os using the CDrom but when i have a server in the datacenter, and i create a vps on it and i am thousands of KM from my server. how will i install the guest os on my VPS on my server in the datacenter.

View 2 Replies View Related

CentOS 5 :: Connect Remotely To MSSQL With PHP

Jan 11, 2011

I just succesfully installed Centos 5.5 64bit with following package:

- httpd 2.2.3-43
- php-mysql 5.1.6-27
- mysql 5.0.77-4

and all these packages are running ok.

My question is how do i connect from Centos to another MSSQL server using PHP? I had read several article but cannot find the best way to achieve this because most of the instruction seems to be quite complicated. I found somewhere in this forum that all it need just this simple command: "yum --enablerepo=extras install php-mssql freetds". While others article said that i need to install "FreeTDS" and some ODBC driver. I'm a little bit curious since most of that article are using an older version of Centos and PHP.

View 10 Replies View Related

CentOS 5 :: Snmp Troubleshooting- Not Able To Query Remotely

Feb 22, 2010

I have 2 Centos 5.2 install that cant be snmp queried from another machine and I am unsure of what to check next.

To make sure it was not an incorrect iptables rule i temporarily turned off iptabes with the same results. I have checked the hosts file and it is correct on both machines.

View 4 Replies View Related

CentOS 5 :: Remotely Accessing Mysql Database?

Mar 10, 2011

I have an application running on a centOS machine that needs to access a database on a CentOS server. I granted access to all users with a certain user name and password.i opened up port 3306 as well with the following command: /sbin/iptables -A INPUT -i eth0 -p tcp --destination-port 3306 -j ACCEPTbut whenever i try to connect from my machine i get an error:ERROR 2003 (HY000): Can't connect to MySQL server on '172.16.102.129' (113)I am using mysql version 5.0.77 on centOS 5.5.

View 1 Replies View Related

CentOS 5 :: Install To Computer That Is Accessed Remotely?

Apr 27, 2011

I have quick question, How to install on the remote computer.currently I wan to install sugarcrm to the computer that I access remotely from mine. How can I do it?

View 4 Replies View Related

CentOS 5 :: VNCviewer Stuck When Logout Remotely

May 16, 2011

I managed to install Centos x86 for the first time, together with VncServer, SSH access, mySQL and Apache. Everything worked greater until I logged in remotely to the server from my Windows 7 machine using RealVnc. I manage to connect successfully and able to use the GUI remotely. However, when I press logout from the menu, the screen gets stuck on the funky blue and white curly background. It does not close automatically.

If I close it using the 'X' button and reconnect, I get in to same stuck screen. My only workaround is to login with Putty and type 'service vncserver restart'. Then I am able to connect again. But same thing happens when I do a logout.

View 2 Replies View Related

General :: Changing Directory - Saved File On The Desktop - Cannot Seem To Get That File To Execute It

Mar 10, 2011

I was doing a tutorial on scripting in bash. I saved my file on the desktop and I cannot seem to get to that file to execute it. Here is what I have been using:

I try cd Desktop says that there is no such directory.

I tried /home/me/Desktop same thing.

View 5 Replies View Related

Ubuntu :: Remotely Wake On Lan - Remotely Turn On Computer

Jan 4, 2011

Does anyone know or recommend some software or a script to remotely power on a PC from standby to on, or even better from completely off?

I guess the completely OFF to ON is much more complicated - would probably require an extra piece of hardware(?)

View 2 Replies View Related

Networking :: Remotely Login To Remotely Display Data?

Jun 29, 2011

I'm not terribly new to Linux, but I am new to the forums, so hear me out! I am in the process of creating an electronic mapwall for our meteorology program, and have designed the computing system from scratch. I have two Linux Boxes, each with capabilities for 6 attached monitors...a total of 12 displays driven from two machines. My intention is to have one machine be the master...it has a touchpanel control. The inputs to the touchpanel will then trigger events for the both the master and the slave machine to display. Each of them has a specific IP address (DNS entry), and are not on a subnet.

Now...is there a way to remotely login to the slave machine and have it display on it's OWN monitors? The code is Java and which works on the master machine to animate directories of .gifs for each of the master's attached monitors. I will most likely have Java execute shell commands for the remote login (ssh), but I believe the answer lies somewhere in the X-configuration. Do I have the machines in an adverse configuration (creation of a subnet would be better)? Lots of questions...lots of desire...few answers!

View 2 Replies View Related

CentOS 5 :: 5.3 Hangs While Remotely Copying Data Onto Server?

Jan 25, 2010

Problem : centos 5.3 hangs while remotely copying data onto this server.

I have A centos 5.3 x86 Version installed on Xeon Quad core , running on 8 GB DDR2 RAM, RAID 1 confgured on SATA drives. this was old installation copy and It has many more things running on it.Therfore, I can't just reinstall it.

I have setup SAMBA PDC + ldap on it. I encounter that system hangs when I copy data into this server from LAN computers.

My troubleshooting steps :

1. I have checked for network issue , My network works fine when I transfer data between other LAN compuers.

2. Even I have tried confguring seprate LAN....

3. I thought their might be some problem with my SAMBA configuration, therefore I did data transfer from sftp .

View 3 Replies View Related

CentOS 5 Server :: Remotely Administer Squid Via Webmin?

Jan 28, 2011

I just installed Webmin on this CentOS 5.5 client and would like to know if it's possible to remotely administer the Squid server. The one I'm using for webmin is different from the one where Squid proxy is running.

How do you set it up and where in Webmin?

View 1 Replies View Related

Security :: File Permission - Read An Execute Only File

Dec 16, 2009

Suppose I have a binary program with only execute permission enabled for the current user. How (in general) would I be able to obtain a core dump of the file? I think I have read it somewhere but I want to know if there are more ways of doing it.

View 1 Replies View Related

CentOS 5 :: Xen Hypervisor - Connect To It Remotely Via A Windows And Linux Machine?

Feb 17, 2011

I am new to Xen Hypervisor and wanted to know if someone has any good guides to configuring it please. Also once i configure a Guest OS how can i connect to it remotely via a windows and linux machine?

View 1 Replies View Related

Programming :: Script To Copy File Remotely?

Oct 5, 2010

Any sample script that will copy file to remote server.I'm doing it on a manual process using SCP parameter

View 2 Replies View Related

General :: Pscp Copy File Remotely From Windows?

Mar 11, 2011

I need to copy file from my Windows XP system to remote Linux system.

Win location : c:1.txt
LInux location:/tmp

What should be the command?

EDITED: pscp is recognized and OK on my PC.I CAN connect with Putty to this remote Linux PC remote Linux name is s1,hostname is s1host

I tried transfer file with following command:

pscp C:1.txt s1@s1host:/tmp

Got:Fatal: Network error: Connection timed out

It's not clear,is command isn't ok?

View 1 Replies View Related

General :: Deploy War File On Tomcat Server Remotely?

Aug 20, 2010

I want to deploy war file on tomcat server remotly.

View 4 Replies View Related

Ubuntu Servers :: Extending File System Partition Remotely?

Aug 24, 2010

I'm still pretty new to servers and ubuntu and have ran into something I could see being a problem in the future. On a dedicated remote server I have installed a web server using the "How To Forge - Perfect server set up for ubuntu 10.04 and ispconfig". I have a forum and email up and running and shoutcast radio and teamspeak3 servers also. We can also nx into it if need be. I can reformat the 1T hdd remotely from my provider control panel and ssh is installed at the same time and a new root password is sent via email. The thing is I now realise that by default the file system is written to a 10gig partition.

This might usually be ok but ispconfig uses the /var/www folder on the file system to house the forum I host and the partition is filling up. My mate I co rent with is talking about starting a parrot/bird owners forum and i might eventually like to have a gaming forum as well. I realise I should probably have set things up differently but like I said I am new at all this and tbh the home directories never going to have much in it so theres 900 gig doing nothing. So my question is can I use anything to enlarge that partition remotely? I know theres gparted on disc and all the articles I found say I need to use a disc which obviously is out of the question.

So what I think I need is some sort of partition magic for ubuntu. I would really like to expand it so all my current files etc on it would stay as is. I'm also currently looking into back up methods and wondered if that would be the way to go? Back up my file system and home directories and then reformat and make the partition larger? Or could I copy the entire www folder to a newly created folder in /home and re write the site enabled files to point to it? Would this work and if so what else would I need to edit?

View 9 Replies View Related

CentOS 5 Server :: Can't Execute Some Commands?

May 22, 2009

I am trying to determine if I should upgrade PHP's PEAR on my server. I am trying to check the version of PEAR currently installed. I am getting the following error when I use the pear -V command:Warning: realpath(): open_basedir restriction in effect. File(/tmp) is not within the allowed path(s)(/usr/share/pear:/usr/share/php) in System.php on line 459I tried adding /tmp to my php.ini file, but then when I use the pear -V command it doesn't do anything. I do not get any errors or anything.I am also trying to install symfony and have the same situation described above when I use the following command: pear cannel-discover pear.symfony-project.comDoes anyone have any thoughts? If not the solution, does anyone have any suggestions on how to begin troubleshooting this?

View 2 Replies View Related

CentOS 5 :: Execute A C++ Program On PowerPC

Oct 5, 2009

I'm trying to execute a C++ program on PowerPC. But I am facing an error saying: "error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory". But a C program gets executed successfully. The programs are cross compiled using PowerPC cross compiler.

View 1 Replies View Related







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