Questions tagged [shell]

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 programming features such as variables, substitution, output redirection, and wildcards.

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 programming features such as variables, substitution, output redirection, and wildcards.

The name was first used by Unix operating system for an interpreter used for command prompt, but currently the term shell refers to BASH(Bourne Again SHell) and other command prompt interpreters too.

1348 questions
-2
votes
1 answer

Differences in Installation for nagios 3/4 on Ubuntu with apt-get or build in?

I am new to nagios. I think my question is not only specific for nagios but overall regarding unix-systems. There are many guides for Nagios Installation. Some of them use apt-get install nagios Others use like build-in or build-essential with…
-2
votes
1 answer

How to cut a string after a number of characters in unix?

How to delete all characters in one line after point with with sed? I have a file with multiple lines like this: 123456789 3483 98765432 56345 985745634 3469 67495735 87654 Now I want to delete all after the first 10 characters. So I only want my…
TCP
  • 11
  • 1
  • 1
  • 1
-2
votes
1 answer

How to scp file to remote servers' root directory and run sudo commands?

NOTE: The servers does not share the same password but I will setup no-password login at first. Here's the use case, I need to do these below step by step in my deploy.sh: scp files to remote servers' /opt/bin directory, which requires root…
harryz
  • 289
  • 2
  • 3
  • 10
-2
votes
2 answers

Create symlink if source exists

I'm trying to make a symlink to a directory if it exists only and cannot figure out how. I tried various ideas I found and none worked. Most notable idea that i thought would do the job was to use ln -s ls /path to test the dir for ln but it did not…
-2
votes
1 answer

Cannot find a valid baseurl for any repo in centos 6.4

when I want to install any repo I found this error Error: Cannot find a valid baseurl for repo: rpmfusion-free I'm using centos 6.4 I tried to check other packages I found the same error ... so it's not on specific pacakge .. (i.e PostgreSQL) yum…
-2
votes
1 answer

ls: cannot access file : No such file or directory.

In the shell script, I will have to access the binary logs stored in /usr/local/mysql/data. but when I do this, STARTLOG=000002 ENDLOG=000222 file=`ls -d /usr/local/mysql/data/mysql-bin.{$STARTLOG..$ENDLOG}| sed 's/^.*\///'` echo $file I get the…
Rudra
  • 199
  • 2
  • 6
  • 11
-2
votes
1 answer

sh dev/null Permission denied apache

I am using Mac osx Mountain Lion for development. I am trying to execute a shell command in php using the 'exec' function. At the end of my command I am putting the output to > /dev/null 2>dev/null &. However it does not work and the error in…
liamTc
  • 237
  • 3
  • 4
  • 9
-2
votes
2 answers

Simplest way to jail users for git

I'd like to create a couple user accounts on my server such that the users can check out a specific git repository. Ideally, the user would not be able to gain access to a shell or copy any files other than the git repo. And ideally this doesn't…
notlesh
  • 125
  • 2
  • 8
-2
votes
1 answer

Rounding by 5 minute interval

How do I round it to the next 5th interval? # date Sat Oct 13 22:09:25 IST 2012 # date '+%H-%M' 22-09 the output should be 22-10 When the minute is 58 it should round to 00 and not 60 though.
shantanuo
  • 3,579
  • 8
  • 49
  • 66
-2
votes
1 answer

Understanding rsh

I appreciate your help in my understanding of RSH- Question related to RSH - RSH is a terminal service which faciliates in remote logging / log off etc ? SSH is the terminology associated with unix / linux only ? or for windows also ? SSH can be…
fr dotnet
  • 21
  • 3
-2
votes
2 answers

Permanent Redirect to another URL

I had a user http://www.example.com/forums for many years and very well index in the search engine. I have moved this to subdomain http://community.example.com and created another website example.com. Now how can I created permanent redirect for all…
Raj K
-2
votes
2 answers

How safe is it to use shell or bash scripting to add dynamic features to a website like processing POST data

I have a simple home web server set up with Apache, but I would rather not have to install and use PHP. I was looking into scripting to deal with the basic dynamic portions of my website. However, I've heard it can be inefficient/unsafe to use…
Dennis
  • 135
  • 5
-2
votes
4 answers

Need to get server bandwidth usage up to the moment (in bytes)

I am writing a CRON/PHP script that will check the server stats every 5 minutes (CPU/RAM/SSD) and log the info to the database. This way I will be able to see server usage over different periods of time. I am curious also to see how much bandwidth…
Gajus
  • 851
  • 5
  • 16
  • 28
-2
votes
1 answer

shell script doesn't run correctly in cron

I want to call a shell script I wrote from a cron. The shell script uses the program Linkchecker. If I run the shell script from the terminal it works just fine. However, when cron runs I get the following errors: File …
rich
  • 1
-2
votes
3 answers

Making a shell server

I am planning to make a public shell server. What things should I modify to secure my server. Please tell me general things to check
manatails008
  • 25
  • 1
  • 4
1 2 3
89
90