A shell is terminology for a command-line interpreter most commonly used with Unix-like operating systems, but also used to interact with GUI-based operating systems in a more granular fashion. Not only does it allows the user to run programs from a text interface, but frequently offers basic ...

learn more… | top users | synonyms

3
votes
2answers
433 views

home, end, delete, pageup, pagedown with ksh

I want to use home, end, delete, pageup, pagedown with ksh. My TERM is xterm-color. These keys works fine with tcsh and zsh, but not with ksh (print a tilda ~) I found this: bind '^[[3'=prefix-2 ...
2
votes
2answers
85 views

Are passwords sent via a bash script retrievable?

As part of running a backup script for a linux server, I have commands like mysqldump within a bash script which contain the mysql root password, and certain ftp server passwords. Are these ...
2
votes
2answers
94 views

Bash autocomplete 7etc to /etc?

I have a German keyboard where I have to type Shift-7 to get the "/" char. I frequently miss the shift key and type path names starting with a 7. Is is possible to configure bash to replace "7etc" ...
3
votes
1answer
291 views

reconstructing shell session from a typescript

There is a bunch of tools like 'script', 'screen', 'ttyrec' which allow record content of shell sessions. By design these tool records everything displayed on pty, including control characters. ...
2
votes
1answer
36 views

Inspecting how $PATH gets created

Is it possible to "listen" to a variable's value during the start of a new shell? I have a script that checks for the $PATH variable in the typical places, but I'd like to try something different. ...
2
votes
1answer
976 views

Linux- Permission denied?

I'm installing Neo4j server as a linux service, but when I install it, I get the following message: /sbin/insserv: Permission denied What is this? What should I do? I'm running everything with ...
2
votes
1answer
368 views

Can't set TERM permanently in fish shell

I use the fish shell. I'm trying to run vim inside tmux with the solarized theme, but the colors are broken unless I run: set -lx TERM screen-256color-bce; before running tmux attach. It's ...
1
vote
1answer
50 views

cp/rsync command with destination as symlink to a directory

I am working on a cPanel backup solution at the moment. We are now informed about this exploit. Exploit : Full ROOT ACCESS to server 1.) create malicious file from, normal user account: mkdir root ...
1
vote
1answer
112 views

The plugin of munin is always timed out

I want to use munin to make a graph of ttyACM0 in Linux, but munin can not create the graph. I found some information in "munin-node.log". it shows that "Service 'temperature' timed out". So I changed ...
1
vote
1answer
82 views

Cygwin shell is overriding my Windows shell

I'm not sure what I did, but I've somehow got Cygwin installed in such a way that even when I try to run an ordinary windows shell, Cygwin is interfering. I have batch scripts that I want to run in ...
1
vote
1answer
235 views

How to issue an rsh command in the background?

How to issue an rsh command to run in the background? Example: within a batch file i call rsh 10.1.1.2 -lroot /etc/rtcinst/myscript.ksh which runs on a remote unix machine. This script takes a ...
1
vote
1answer
115 views

how to limit maxlogin for a port forward over ssh user who Do not execute a remote command

I have some users, who connect to my server through the ssh for port forwarding and ssh tunneling, but there is a problem: I cannot limit their concurrent logins, because they have no session and ...
0
votes
1answer
46 views

Shell script won't run ruby script file

My shell script (my_shell.sh) won't run the ruby script ("ruby_script_1.rb) in it. my_shell.sh #!/bin/sh # Invoke the ruby script here ./ruby_script_1.rb It could not find where the ...
0
votes
1answer
39 views

prevent normal users from running code on a cluster outside of pbs system

In our cluster with PBS batch system (torque) installed, we wish all the users execute their jobs by qsub so that the CPU resources can be well managed. However, it is found that users in our cluster ...
0
votes
1answer
74 views

Close putty connection from CentOS 6 shell script

as title says I have a centOS 6 machine which uses an dracut, initramfs preboot ssh. I want to create a shell script that at the end of it's execution it closes the console and ssh connection. How can ...
0
votes
1answer
96 views

Transfer used ram to swap and free more physical ram

I have a vps with 256m physical ram and 512m swap space, I am trying to use a software that need more than 256m and less than 512m ram, so it uses swap. The problem is at some moment of the ...
0
votes
1answer
177 views

automatically start and and selectively stop multiple instances of couchdb on osx

I have successfully installed couchdb via homebrew: % brew install couchdb ...and invoked mutiple instances as directed here: % OLD=/usr/local % NEW=/tmp/couchdb % mkdir -p $NEW/etc/couchdb/ % ...
0
votes
1answer
383 views

expect script not working with bash script

I want a script that ssh to remote server and then run a script which is at my local machine and then store the output on my local machine Expect script for ssh to remote server: #!/usr/bin/expect ...
0
votes
1answer
196 views

Shell - Fix 80 column wrap limit

I have several Centos servers that enforce an 80 column limit when I ssh into them, rather than being dynamic and going to the width of whatever shell I am using as seen here: . Is there a way to ...
0
votes
1answer
134 views

Attempting to change shell to ZSH on Amazon Linux: Asking for ec2-user's password

What do I enter? I use the provided private-key to authenticate when SSH-ing to the server, so I don't think I actually have a password for the user... Also tried this:
0
votes
1answer
378 views

Group permission inheritance and umask

Edit: in my case virtual_use_local_privs=TRUE did the trick. i'm trying to force newly created files and directories inside foo/ directory to be owned by nginx user and to set the right permissions ...
0
votes
1answer
361 views

Error while trying to unrar

unrar: error while loading shared libraries: libgcc_s.so.1: cannot open shared object file: No such file or directory Both rar & unrar are in the /bin folder I followed this tutorial: ...
0
votes
1answer
299 views

Home folder only SFTP connection has limited access

I have configured sftp access for user using this guide: Linux shell to restrict sftp users to their home directories? I have problem though. I have taken all steps. I have chown'ed root:user the ...
0
votes
1answer
59 views

Discerning which GNU screen window is being used in a shell script

Using a shell script, how can you tell if a screen is running using shell scripts? For example, using pseudocode: IF (screen.screenname.running == TRUE) or something like that.
0
votes
1answer
723 views

exchange 2007 mail contact export / import

Is there a shell command in Exchange 2007 to export the mail contacts located in Recipient Configuration > Mail Contact. we have recently started an AD forest migration and now it's time to do email ...
0
votes
1answer
398 views

SSH connection gives no prompt, unresponsive

I'm ssh'ing from my OSX laptop to an OSX server. It worked a couple of days ago. Now, when I try and connect, no text is output. My session (with -v option) looks like: ~ $ ssh myserver ... ...
0
votes
1answer
81 views

remote keyboard not recognized

I'm logged into a remote server using putty ssh. The problem is that keyboard keys are not working as I was expecting. I'm talking about directional keys and tab. TAB is working as in MS Windows, ...
0
votes
1answer
216 views

Linux Kernel Usb Printer Device Class driver

I am trying to update the CUPS daemon on my QNAP NAS, which runs a flavor of *nix. The entire OS system is loaded on a RAMDISK when the NAS boots so I've come up with a script that runs at start-up ...
0
votes
1answer
227 views

Shell script Process PID logging and maintenance using exec

I am trying to launch a java process as a server and then might periodically need to restart/kill it at certain times. Since I use a shell script to launch java jvm(to build classpath), I thought of ...
0
votes
1answer
157 views

Writing to a txt file by xp_cmdshell

I m trying to write query result to txt file. Here is my code: exec master..xp_cmdshell 'bcp "select * from Leasings" queryout "DHCPLog.txt" -c -t,-T MyServerIP' But the result is : And there ...
0
votes
1answer
43 views

Add users to a server folder

I use Windows Server 2003 R2. I am logged in as user Administrator. I want to give myself permission to add a user for a certain folder. I granted myself all possible permissions for the parent folder ...
0
votes
1answer
48 views

File monitoring on a shared host

I've got a client that wants to be notified anytime there are new files in their directory on a shared host. Since the directory is a website, which caches files to a specific subdirectory, we want to ...
-3
votes
1answer
1k views

PuTTY - Server Unexpectedly Closed Network Connection

I have two servers that I have been able to connect fine as s1.website.com and s2.website.com I connected to s1.website.com earlier today without any issues, however, when I connected to ...
1
vote
0answers
81 views

EC2 - editing .bashrc causes terminal to hang and checks to fail

I've been testing this for the past few hours with no luck. When launching an Ubuntu 12.04 EC2 micro instance, I SSH to it, create a new user and continue with installing Ruby version manger under ...
1
vote
0answers
58 views

Why Parent Class In a TC Rules Tree Not Working

The parent class in my TC rules script doesn't work as it garanteed! Can somebody tell me what is wrong with my script? Here are some details about my question: From the chapter "9.5.4.4. Sample ...
1
vote
0answers
244 views

Automate an interactive command which use /dev/tty

well pretty much it's in the title. I've a interactive command. This one ask for a password through /dev/tty. I use this command within a shell script. So the command should read the information ...
1
vote
0answers
929 views

Windows GPO “Allow Remote Shell Access”, where to set 'False' once you enable it?

OS : Windows 7 64 bit Under Local Group Policy Editor > Local Computer Policy > Computer Configuration > Administrative Templates > Windows Components > Windows Remote Shell > there is a policy ...
0
votes
0answers
6 views

How do I capture the Maven Jar name as a part of a Hudson job?

I have a Maven 3 job configured in my Hudson server. When the Hudson server successfully builds the Maven jar, I have the jar being deployed to an SCP repository on another server. I want to execute ...
0
votes
0answers
62 views

SSH without invoking shell

I've managed to mess up some shared libraries on my system, and now my shell cannot be run, thus locking me out of the system. Both ssh, sftp, and scp, as configured on the remote system, seem to rely ...
0
votes
0answers
41 views

Distributing Master node ssh key

For the master node to passwordless-ly ssh into the slaves, the master needs to distribute its ssh key to the slaves. Copying key using ssh-copy-id asks for the user password. If there are hundreds of ...
0
votes
0answers
11 views

Ctrl-C is ignored by pppd when put in a shell script

I'm trying to connect to GPRS network through a serial port connected GSM modem. When I call /usr/sbin/pppd call <peer_name> from the command line, It correctly receives and handles Ctrl+C from ...
0
votes
0answers
938 views

rsync: getcwd(): No such file or directory (2)

I want to sync Server1 and Server2's logs to LogServer. For Server1: rsync -avz -e 'ssh -p 2188' user@server1:/usr/local/servers/logs/* /usr/local/logs/ This one works, but for Server2: rsync ...
0
votes
0answers
25 views

Running command from script won't give desired output

If I run sudo /usr/lib/update-notifier/apt-check -p &> ~/update-list.txt directly on terminal, I get the update-list.txt file with all the updates in it. But if I write the same command in a ...
0
votes
0answers
170 views

shell command queuing system linux (like atd)

I need to queue shell commands depending on current available resources. I know of atd and it's exactly the type of tool I would like to find but with consideration for RAM and possibly disk ...
0
votes
0answers
93 views

Export system wide env variables at boot

how can I export a list of env variables at server startup so they can be reached system wide and without having to login with a system user ? I've used /etc/profile to export this list of variables ...
0
votes
0answers
449 views

CentOS 6.2 Hangs on Boot, /bin/sh: error while loading shared libraries

I have a Dell R310 server. Installed CentOS 6.2 (minimal) and it won't boot. It hangs at the following error. /bin/sh: error while loading shared libraries: /bin/sh: supported version 25416 of ...
0
votes
0answers
1k views

Jenkins shell command isn't executing

In Jenkins project I add command for executiong rm /var/www/ru.liveyurist.ru/tmp/* But when I build project I get error: Started by user anonymous Building in workspace /var/www/ru.myproject.ru ...
0
votes
0answers
335 views

smbclient - delete files older than x days

I want to delete files older then x days on a samba share using the smbclient command like: smbclient //MYSERVER/MYSHARE -A /root/.smbclient -c "dir <mask>"; What do I need to put in < ...
0
votes
0answers
794 views

ldap_delete issue: no global superior knowledge

I'm trying to remove all entries under a particular OU on an LDAP server. The command that I'm using is: sudo slapcat -v -n 1 -a ...
0
votes
0answers
1k views

PHP cannot execute shell commands (CentOS 5.6, PHP 5.3.3)

Title says it all; I cannot run shell commands properly from PHP (CGI). Most commands (pwd and my own program) end with an exit code of 1 (permission denied). The command ls ends with an exit code of ...