I want to use ssh to execute a command and to wait endlessly to log everything (in file) that comes as a stream of the connected server. But unfortunately, in the manual its written "If command is specified, it is executed on the remote host instead of a login shell"
So what happens is that when I specify my command: ssh user@server "my_command"
It executed the command and the flow of execution returns to bash shell. So basically my session ends right after the command is executed. This happens only in case I specify command in the command line. If I login into ssh manually and then type "my_command", then the session doesn't end. I want the ssh not to exit, because after "my_command" executes, I want to capture everything in the session.
create a tar file from a list? My script returns the error: AttributeError: 'list' object has no attribute 'startswith' I want to create a compressed tar file containing the directory /usr/lib and the files in the list assigned to variable b.
code:
import tarfile tar = tarfile.open("backup.gz", "w:gz")
......................................... tape_restore.sh: 40: source: not found tape_restore.sh: 41: source: not found tape_restore.sh: 42: source: not found .................................
But in Redhat I can run same script . My script as follows.
this is srinath,newbie to linux and shell scripts.am in need of shell script,which have to checkout the source code(C/C++) from CVS server to a specified directory and compile that source code and get all its dependency files to a specified directory.
I have recently loaded Linux Mint on an old IBM Laptop and am very happy with the GUI; however, I would like to learn how to use the Linux shell/terminal. I don't know any of the commands. Is there a good online source for this information--a tutorial or list?
I am trying to write a .sh script that will source a file containing evnironment variables and then open a konsole terminal session that will have those settings.
I'm working with OpenSusse 11.2. I installed and activated the NFS server via yast2. I exported the relevant directory via yast2 (NFS server configurastion) I'm trying to setup my Linux target to boot via NFS. The kernel boots up but fails to mount the file system. When looking on a capture from ethereal it can be found that the NFS server return error when client try to mount the /nfstest directory from this server. The returned error is 13
I am using Fedora 14 (64 bit version): Can't Start XAWTV. Returns the error. $ xawtv This is xawtv-3.99.rc6, running on Linux/x86_64 (2.6.35.12-90.fc14.x86_64) xinerama 0: 1920x1080+0+0 WARNING: No DGA direct video mode for this display. WARNING: keeping fbuf pitch at: 7680, as no base addr was detected WARNING: couldn't find framebuffer base address, try manual configuration ("v4l-conf -a <addr>") v4l2: WARNING: framebuffer base address mismatch v4l2: me=(nil) v4l=(nil) Warning: Missing charsets in String to FontSet conversion Warning: Missing charsets in String to FontSet conversion Oops: can't load any font
I have a service on my Suse 11 server which runs an ssh command (using openSSH) on another box.The output below is returned, but legitimate output is also returned as if the command had executed successfully. For example, the service executes an ls command through ssh, gets the error below, but also the contents of the remote directory as output. This is a problem because the service retries the command until it receives no error. I have been unable to replicate this manually from the command line. Does anyone know what might cause this or what this error really means?
I have a new Debian Linux 6.0 server installed, running Linux 2.6.38.3-linode32 on i686. It has apache2 on front.
The master plan was to run Railo on this one, so I can continue my mad Coldfusion schemes to rule the world, so got the tomcat set up with it, as instructed by some guy I met on a chat. He seemed very reliable.
I got the whole thing working, can view my regular html files and whatnot, but as soon as I try to run a cfm file,
I get an error message on screen:
I have no idea whatsoever what to do next. This is my site with the html file:[url] and here is my test index.cfm file:[url]
I'm having a little problem here. That, or I'm missing the obvious staring me in the face. I have this file server, called toad. I nuked it's system disk, reorganising the partitions and upgrading to openSUSE 11.3 x64. I installed vsftd with "Yast FTP server", and the config looks OK. I even compared it with that of another machine. But when I try to connect, this is what I get:
user@mainmachine:~> ftp ftp> open toad Connected to toad.geuens.org. 500 OOPS: could not bind listening IPv6 socket
I'm prettige sure IPv6 is deactivated. The firewall is disabled on both machines. I've looked this over again and again. Can't find it. It's not the connecting machine, I've tried from another.
Running start_navicat script in kubuntu 11.04 returns bash error ./start_navicat: 10: arithmetic expression: expecting EOF: "2*100+13 2". The same navicat version runs fine in ubuntu 10.10 and 10.04. I tried deleting navicat folders - including hidden folders and reinstalling, but get the same error.Can't test ubuntu 11.04 because i can't get it running (black screen - even grub). xubuntu 11.04 is very unstable too. kubuntu 11.04 is very stable otherwise.no idea what to do, other than continue using ubuntu 10.10 (which is the best ubuntu version to date imho)
The system is Debian Squeeze/Sid with apt.conf set to Squeeze as the default. Most packages are from Squeeze.
I ran apt-get upgrade and it returned an error-code.
It might be it is this bug: Bug#574153: python-pkg-resources: Missing file leaves it unconfigured
I tried aptitude install -f, to hold it and to remove the package python-pkg-resources, but i am getting told the package would be in a very bad stage, and i should re-install it. That doesn't work.
I recently installed my redhat 6.0 and there was no internet connection so i read some threads that guided me to try and detect my network card which detected nothing. I then went ahead to download ethernet realtek ethernet gigabyte card driver for my version of linux. I untar the file and i got the directory r8168-x.x.xxx.xx, a README file so i read the README file and it asked me to run ./autorun.sh which i did but i got the following error:
I tried to ignore it (yesterday it made me remove xmms2-plugin-all, i could have lived with that for a few days), but it is getting worse: gnomebaker, mpg123, vorbis-tools, cdrdao, etc.
So i remove beloved apps , run aptitude install -f and what not. The result is that either libao2 or libao4 give me trouble (depending which version is installed at that moment).
After the upgrades are available again it's big fun over here. Is it just me or are others running in a lot of "dpkg returned an error message" too? The first time ever i got to use aptitude to get problems solved. Gnome terminal gives me segmentation fault but no error messages. And so on.
I'm simply trying to compile a vanilla kernel from Kernel.org, I've done it before, however "make menuconfig" returns an error after I've made my changes to the config file.
Code:
Why is make returning that error? I am using a 64-bit kernel.
I'm trying to burn an audio CD with Brasero. Every time I try this, it fails, but it works when writing to an image file. Brasero quits with the following messages in log:
Code: Checking session consistency (brasero_burn_check_session_consistency brasero-burn.c:1744) Unsupported type of task operation Session error : An internal error occurred (brasero_burn_record brasero-burn.c:2862) Do you know what could be causing this?
I am running Xubuntu on a MacBook Pro with fluxbox as my window manager. Yesterday when I attempted to launch firefox I received a bus error and the application did not launch. I corrected the problem by removing and reinstalling firefox. Today the same problem is happening with emacs. I have not tried removing and reinstalling emacs so I am not sure if that will work but since the problem has occurred in more than one application now, I assume it points to a larger issue. I have done some research on bus errors but it isn't clear why this problem would manifest in different applications in this manner. After the a failed launch the dmesg reports this, which seems relevant:
I'm running spamassassin and want to install the fuzzyocr module for it. One of the dependencies of fuzzyocr is 'giflib' but according to the fuzzyocr page, it needs to be patched before I install it, with a patch which they supply on the fuzzyocr download page. I've tried to install the patch and get the following error.
I'm trying to install citadel server on ubuntu server 10.04 via apt-get install citadel-server. I get an error at:setting up citadel-server (7.71-1)export: 106: 007: bad variable namedpkg script exits with error code 1.would this be due to unmet dependency?WalterPS. filed a bug in launchpad