ssh help with scripting a remote command using redirect
location:
linuxquestions.com - date:
October 22, 2013
Hoping someone can help me find a way around this.
I have a script that does a mysql dump, transfers it to a standby system then I want to import that into the remote mysql.
It's restricted to run one command that parses input for bad stuff then when satisfied it's only running mysql, runs the command which is passed as a variable.
my problem is, ssh fails to parse a redirect. eg:
ssh
[email protected] "mysql -v -pmy_password < file_I_just_scped"
I get a syntax error from mysql. I can't run bash (to parse the < correctly) because bash won't run the binary.
Anyone know of a clever way around this, besides using a script on the remote system?
How to debug a large project using "GDB"?
location:
ubuntuforums.com - date:
June 30, 2010
Hi all!
I'm using ubuntu 9.04;
I want to debug my project that comprises mutiple files and it's Makefile is as below:
Code:
OS = LINUX
PROG = rawusb_test
ifeq ($(OS), LINUX)
TARGET = $(PROG)
CC = g++
STRIP = strip
CFLAGS = -Wall -O2 -DOS_$(OS) -DDEBUG
LIBS = -static libusb.a
endif
OBJS = $(PROG).o hid.o PKI_Buf.o
all: $(TARGET)
$(PROG): $(OBJS)
$(CC) -o $(PROG) $(OBJS) $(LIBS)
$(STRIP) $(PROG)
hid.o: hid_$(OS).cpp hid.h
$(CC) $(CFLAGS) -c -o
[email protected] $<
PKI_Buf.o: PKI_Buf.cpp
$(CC) $(CFLAGS) -c -o
[email protected] $<
clean:
rm -f hid.o $(PROG) $(PROG).o $(PROG).exe $(PROG).dmg
rm -rf tmp
I've learnt how to debug a "Simple & Single" program using "GDB", but I have problem in debugging such a project!
When I cd to the project folder and run the command "gdb rawusb_test", I see the result:
Code:
(no debugging symbols found)
When I want to set a breakpoint using the command:
Code:
b 20
I see the result:
Code:
No symbol table is l
Grub Rescue Remains Unsolved even using Live Cd Urgent Help needed.......
location: linuxquestions.com - date: October 2, 2013
Hi Guys ,
I was using my windows and power turned of due to lack of battery backup. And after that i Stepped into
error: unknown filesystem
grub rescue>
No partitions except (hd0,2) is unknown filesystem and this particular one is error reading. Even I tried to use "insmod normal" it shows cant read from sector hd0 0x3802 some error.
Now when I tried to boot fro live usb ubuntu prompt is going on and going on. Nothing is happening.
copy files....using scp help me
location:
linuxquestions.com - date:
January 25, 2005
Hi,
[
[email protected] student]# scp
[email protected]:/home/student/aerofoils/ dumpfile
[email protected]'s password:
scp: /home/student/aerofoils: not a regular file
Need help restarting linux servers using PHP
location: linuxquestions.com - date: November 11, 2009
I am trying to develop a server administration page so that I can restart httpd, named, proftpd, mysql, and mail servers from my webpage using php. I started with httpd when I enter the following command from a linux command line, works just fine.
service restart httpd
But when I try and use the following code in my php page
PHP Code:
building using gitbuildpackage. creating orig.tar.gz help
location: ubuntuforums.com - date: November 6, 2011
Hi,
I am trying to build debian packages from git debian compiz source.
http://anonscm.debian.org/gitweb/?p=...app/compiz.git
I pulled the git sources and edited debian/control file to suit the dependencies and committed. but, when I run "git-buildpackage" it fails . saying *.orig.tar.gz is missing.
I tried reading the documentation and it is confusing as it says about setting a repository?
/usr/share/doc/git-buildpackage/manual-html/index.html
EDIT: Since I am using Gnome-2.30.2 on Debian Testing, I don't want "compiz-kde" package being built once compiled. Is there any way to prevent kde specific packages from being built? I removed kde dependencies and removed "compiz-kde" in debian/control file hoping it will work.
I need to know what I am missing. does it needs to edit debian/gbp.conf ?
Thanks.
Help me out using Linux with NS2
location: linuxquestions.com - date: November 13, 2013
Do any one know working on Wireless mesh networks using NS2 simulator in Linux...????
Please help me out
Using escape string error in MySQL select command, any one can help me?
location: linuxquestions.com - date: February 16, 2004
Using escape string error in MySQL select command, any one can help me?
hello:
when I using the following select command, the syntax error appears.
select * from tablename where name like \'Mecki\' ;
what is going on? who can tell me why? thanks for your helping in advance.
myunicom
Any body using mysql query browser GUI? i need help...
location: linuxquestions.com - date: February 3, 2008
Hi, i'm using 10.3 and mysql query browser does not work on 10.3. It hangs when i select a schema.
I do not know if this is the place to ask my question, but i do hope if i can find some help here.
I check on the net and found there is a patch to solve the problem.
Code:
installing Kali Linux using Ubunto .Efi files Grub.cfg help needed!
location: ubuntuforums.com - date: February 26, 2014
I'm trying to install Kali Linux on my personal Windows 8 laptop (Sony Vaio Flip 15).
To my knowledge there are currently only two distributions of Linux that support Windows 8 (Ubuntu and Fedora)
I have tried Ubuntu with no errors running the distro live.(I did not try installing it)
However, for the tasks I'm trying to accomplish I need Back track5 r3 (or *preferably) Kali
I have currently installed Kali Linux on a USB flash drive using: Universal USB Installer
At this point, I have configured my laptop to boot from an external device before booting form the internal hard drive. I understand Windows 8 uses Unified Extensible Firmware Interface (UEFI) and not BIOS. Therefore, I have disabled secure boot and created the following directory in my USB flash drive root.
/EFI/BOOT
Within this directory I have copied (Bootx64.efi & Grubx64.efi) from Ubuntu; additionally, I have created a Grub.cfg file which I have pasted at the bottom of this post.
As of now I have been able to
1)
please wait...
Page: 1 2 3 4 5 6 7 8 9 10