I have tried few examples in the internet but all of them are different and none worked. I need to check if a file exists in a directory if it does not then exit . here is what I have for now
$filename ="/usr/local/net/var/lib/directoryservice/sync.disable"
if ;
then
echo "The file exists"... (2 Replies)
I got the below script on line but can't seem to get it to work as there are syntax errors where 'len' is shown. Can anyone help with this??
echo " Enter the String"
read str
echo $str > str.txt
len = 'echo $str | wc -c'
len = 'expr $len -1'
c= 0 , w = 0 , s = 0 , i = 1
echo " Length... (1 Reply)
Hi all,
I have an assignment from school to write a shell program in linux. the idea is to exercise fork() and execv() functions.. the shell program is supposed to be the master and every command that the user prints will run in a new process. we also need to try running the command in every... (1 Reply)
Ubuntu 12.04 using gnome-shell
I just removed the entire unity unity-2d gnome desktop and installed the barebones essentials "gnome-shell" and all is working fine. The problem that I have noticed seems to be with permissions. These are the things that I cannot do:
1 -(tty access)
... (1 Reply)
I think it may be a bug:
This is the scenario:
I installed a barebones Ubuntu 12.04 using GNOME-SHELL on a usbstick(work related project). All worked fine from the laptop that I did the installation from. It grabbed an ip address automatically assigning the nic (eth0) and the wireless... (1 Reply)
Terminator is a program that allows users to set up flexible arrangements of GNOME terminals.
It has stopped working for me after upgrading to ubuntu 11.10. it does not give prompt to type anything. Just stuck with /bin/bash in the title.
I removed and installed again, same... (2 Replies)
https://www.unix.com/attachment.php?attachmentid=6304&d=1432179166
how can draw line like this? on ubuntu, shell programming.
i tried "-" , " l " but it's failed.. (2 Replies)
Hi,so today is my first day with linux.
I have some scripts from a friend and now im trying to run them but it doesnt work. So what i tried is:
-Moved the scripts to a specific directoy (into my document folder)
-then i opened the standard terminal in ubuntu (GNOME-Terminal)
-i typed in "Ls",... (3 Replies)
Discussion started by: easy123
3 Replies
LEARN ABOUT OPENSOLARIS
suspend
suspend(1) User Commands suspend(1)NAME
suspend - shell built-in function to halt the current shell
SYNOPSIS
sh
suspend
csh
suspend
ksh
suspend
DESCRIPTION
sh
Stops the execution of the current shell (but not if it is the login shell).
csh
Stop the shell in its tracks, much as if it had been sent a stop signal with ^Z. This is most often used to stop shells started by su.
ksh
Stops the execution of the current shell (but not if it is the login shell).
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
SEE ALSO csh(1), kill(1), ksh(1), sh(1), su(1M), attributes(5)SunOS 5.11 15 Apr 1994 suspend(1)