General :: Ksh Shell Script - Not Working ?
Oct 28, 2010
I tried to run a ksh shell script, it is very short, but not working.
when I run it, it returns something like...
I copied this script online and tried to use it. I am using ubuntu vm.
View 5 Replies
ADVERTISEMENT
Apr 4, 2011
I am the new child of the linux world. What is the difference and working functions between kernel and shell..
View 5 Replies
View Related
May 29, 2011
Just trying to execute cd command in a .cshrc file (bash shell in SUSE Linux) it says."No such file or directory".Do you see any reasons for this
View 3 Replies
View Related
Jun 8, 2011
I am new to Linux, but was put in charge of our company's Amazon presence. My problem is that all of the sudden, a shell script we have been using has stopped working, and returned an odd error that I simply can't decipher. The shell script is pretty simple, and is run on our crontab (however manually running it causes the same error as well). The script name is "sendh.sh" and to run it in Linux is simply typing "sh sendh.sh". Here it is:
[Code]....
Yes, obviously those files are in the directory, I can see them through the "ls" command (or through WinSCP as well). When run one by one, each command works fine, it's just when using this "sendh.sh" shell script then it fails. Does anyone know why "" is appended to the filenames when I try to run it, or what the heck "ambiguous redirect" means?
View 11 Replies
View Related
Jun 15, 2011
MACHINE: HP Proliant DL260G5OS: SLES 11 SP1kernel: Linux xserver 2.6.32.12-0.7-default #1 SMP 2010-05-20 11:14:20 +0200 x86_64 x86_64 x86_64 GNU/LinuxIt is used as remote xserver in a LAN.I have configured /usr/lib/restricted/bin/.rbashrc with some environment variables but when the users logon in the system finally is executed $HOME/.bashrc and some environment vars are overwritten.
View 2 Replies
View Related
Apr 27, 2011
I would like know when it is necessary or advisable to write a shell script instead of shell function ?
View 3 Replies
View Related
Jan 18, 2011
I am wondering if I can open a shell or new terminal thing from within the terminal in a unix/linux enviroment. Particularly a commandline only one where there is no GUI. Is this doable? how do I do it?
View 3 Replies
View Related
Aug 14, 2010
I have a serious problem with my Ubuntu installation (in a VM). In virtually every case where I try to access the command-line (Terminal, logging in directly into shell), I am not getting the command line. I get a blank line, and anything I type in results in the following text being replied:
"WinSCP: this is end-of-file:0"
I know what WinSCP is, and I'm not using it at all. And the result is that I can't run any command-line programs or commands anywhere within the VM anymore.
Both the VM and the host computer have been rebooted multiple times. I actually hadn't edited anything in the VM in a while, and I came across this issue while needing to fix another issue...
Somehow I'd been locked out of my OpenSSH access on the host computer (Windows Vista), and while troubleshooting that, I found that someone was trying to hack into SSH with random password attacks. I haven't noticed any suspicious activity otherwise (no missing files, no malicious programs, no traces of a hacker) but after looking at the logs on the Ubuntu VM, it looks as if someone was trying to get into that computer as well. The only fishy thing I've noticed is the command-line shell issue on the VM.
So, now that I've turned off SSH and I'm trying to get Ubuntu fixed... what can I do? Did some hacker get into the Ubuntu VM and set up a shell redirect or something? Or is this a more innocent or easily fixed issue?
View 1 Replies
View Related
Jan 20, 2010
I'm creating a script all worked fine in the command line. But not work in the cron. Below you could see the script
[Code]...
So far I found when I use corn following part not working, nothing goes to the processedfiles file. ls -l /var/lct/mou2/processed | grep $TODAY | awk '{print " " $8}' > /home/trans/mou/processedfiles ls -l /var/lct/mou2/processed | grep $YESTERDAY | awk '{print " " $8}' >> /home/trans/mou/processedfiles This work perfect in command line. Corn job and command line use by the same user.
View 6 Replies
View Related
Jun 27, 2011
Gedit windows don't aerosnap left or right. They do upwards (to maximize).
Fedora 15, Gnome Shell, enjoying it.
A classical case for "aerosnapping" two windows side by side, in my experience, is a terminal on one side and a HOWTO in gedit on the other side. This allows easy copy and paste.
Anyway, a gedit window doesn't aerosnap left and right (it only heeds to aerosnapping on the top, for maximizing its window).
View 8 Replies
View Related
Oct 16, 2010
I am passing an array in function. I want to read the first content again and again until it is empty so
function calltoarray
{
read $1[0]
while [ ! -n "$1[0]" ]
do
echo empty
read $1[0]
done
}
But the code is not working. If we just press enter without value at read $1[0]. It do not get into while loop.
View 2 Replies
View Related
Mar 11, 2011
I have a QNX machine with a slinger webserver running on it. With a cgi script i'm trying to do the QNX cksum call and compare it's output value with a fixed output. When i execute the script at the command line it works perfect, but when execute this script by by the webserver in my browser it doesn't work. Here's my code:
#!/bin/sh
FILE="/home/checkfile"
ORIGCHECK="1712885500"
[code].....
Could it be possible that i'm not allowed to do the cksum call in combination with the slinger webserver?
View 4 Replies
View Related
Aug 30, 2015
Why there is too much error in every version of gnome-shell and after everything slows down after a few hours of working in gnome-shell on debian(only on debian, i'm using gnome-shell in fedora and excellent experience i had in it) some of syslog output :
# tail -f /var/log/syslog
Aug 30 21:20:38 ali-deb gnome-session[8351]: (gnome-shell:8495): GLib-GObject-CRITICAL **: g_object_set: assertion 'G_IS_OBJECT (object)' failed
Aug 30 21:20:38 ali-deb gnome-session[8351]: (gnome-shell:8495): GLib-GObject-CRITICAL **: g_object_set: assertion 'G_IS_OBJECT (object)' failed
Aug 30 21:20:38 ali-deb gnome-session[8351]: (gnome-shell:8495): Clutter-CRITICAL **: clutter_layout_manager_get_child_meta: assertion 'CLUTTER_IS_LAYOUT_MANAGER (manager)' failed
[Code] .....
View 2 Replies
View Related
Jan 12, 2010
I need CentOS to communicate with an MS SQL Server 2000.I have installed FreeTDS and PHP and the following work:TSQL (using and selecting from the SQL Server)PHP from Shell (running a script from the shell)
View 5 Replies
View Related
Mar 14, 2010
I want to change my default shell to tcsh. I used
Code:
usermod -s /bin/tcsh username
command as given at url
But if I open a new shell, it is still a bash shell.
How do I make my default shell as tcsh?
View 6 Replies
View Related
Jul 26, 2010
I am using ubuntu10.04-server 64bit AMD with fluxbox. After I ran Matlab in a shell (without GUI) the shell does not display characters anymore, but will execute any command, I just can't see the characters that I'm typing.. I use aterm and xterm, does anybody know why that is, am I missing a package?
View 1 Replies
View Related
Apr 14, 2011
Is there any way I can switch my desktop shell from unity to, say, gnome-shell? I can switch using other console shell I like (bash, csh, fish, etc.). Assume that there is a stable alternative desktop shell, I should be able to choose, too.
(For console shell, we goes to /etc/passwd. But for desktop, I can't find the way to config.)
View 2 Replies
View Related
May 21, 2009
Is there a way to export a variable to parent shell in shell scripting ?
View 3 Replies
View Related
Jun 5, 2011
I am trying to create a shell script similar to ls, but which only lists directories. I have the first half working (no argument version), but trying to make it accept an argument, I am failing. My logic is sound I think, but I'm missing something on the syntax.
Code:
if [ $# -eq 0 ] ; then
d=`pwd`
for i in * ; do
if test -d $d/$i ; then
echo "$i:"
code....
View 10 Replies
View Related
Jun 25, 2010
Is there some type of functional way to read things in the Python shell interpreter similar to less or more in the bash (and other) command line shells?
Example:
Code:
>>> import subprocess
>>> help(subprocess)
...
[pages of stuff to read]
...
I'm hoping so as I hate scrolling and love how less works with simple keystrokes for page-up/page-down/searching etc.
View 4 Replies
View Related
Jun 15, 2010
I am using Red Hat Linux Enterprise version 5. I've noticed people sometimes running commands with a couple of & options. For example, in the below command, there are two & signs. What is the purpose of them? Are they always used together with nohup?
nohup foo.sh <script parameters> >& <log_file_name> &
View 6 Replies
View Related
Sep 2, 2010
I was working on a shell and got some weird exceptions in my program.Just as a reference, I want to save all that is there on my shell to a text file. I do not just want the command history but also all the results that those commands produced at the shell.Is there some built-in utility to do this? I have kept the shell open for now, so that I can take the backup. Also, I am using xterm and it does not allow selecting all the way upto the top of the shell, so the ultimate way is to take the backup one screen at a time.
View 2 Replies
View Related
May 2, 2011
I was wondering if it is somehow technologically possible for Windows to add some sort of Linux interface? I think it would win over many programmers to develop on Windows.
View 4 Replies
View Related
Mar 1, 2011
I have achieved the following in the terminal:-
ftp> open <name of server>
name <insert log in>
password: <password>
[code]...
View 1 Replies
View Related
May 19, 2010
I've had my prompt change whenever I :sh (:shell) out of VIM, but can't for the life of me remember how?. The idea is to change the prompt to something like [SH] <your usual prompt here>, so that I know that VIM is running in the background.. I often logout of the shell, because I think VIM is open.
View 3 Replies
View Related
Jun 30, 2011
I just upgraded my OS and find that I have a generic type terminal.How would I go about getting the Bourne again shell?
View 14 Replies
View Related
Mar 12, 2011
ill have this question on the test maybe : In dir00 directory create files year01.txt, year02, ...year05.txt with January calendar for 2001-2005 years in it.-i'm lost. i execute this : cat | cal 01 2001 > year01.txt
View 12 Replies
View Related
May 26, 2011
how to write own shell in linux?i want to know procedure of shell programming.
View 5 Replies
View Related
Feb 15, 2011
What is shell scripting? what is 'bash'?
View 14 Replies
View Related
Dec 15, 2009
I've created a simple script based menu. This menu will be accessed by only a certain users via ssh.When user logs in, the menu will automatically run. (configured at user's .bash_profile).How do I force the session to close when user hits Ctrl-C or Ctrl-Break ?In a nutshell, I don't want user to have access to shell.
View 11 Replies
View Related