SUSE / Novell :: IF Command - Script Execution Completed Or Not
Jun 21, 2010
I have a script:
Quote:
# Call mail script to send an email
if [ -f /tmp/report.txt ]; then
/usr/local/scripts/mail.pl
sleep 10
rm /tmp/report.txt
else
exit
fi
What I need to do is, I want to check if file exists, if file exists call other script (mail.pl) and then delete the file (assuming mail.pl script executed). If file not exists just exit out of the script. I'm not sure how I can see that other script execution completed or not before I delete the file even though I put sleep command. And also it seems like its not that good, even though it is working. I wanted to see if we can write in more efficient way.
View 4 Replies
ADVERTISEMENT
Jun 14, 2010
I am using openSUSE 10.3 and the pc is DELL Optiplex 780. The network devices is not supported by openSUSE 10.3 but I may have found it's module. But I can't "MAKE INSTALL" it as my installation does not have MAKE command.
I have selected "Install All" during my installation. Linux version is 2.6.22.5-31-default.
What is the package name for the MAKE command? So that I can find it so that I can install it into my openSUSE 10.3?
View 3 Replies
View Related
Jun 16, 2010
I have a command which is application related and I get a output some thing like this when I execute the command...Quote:applicationrunningSo I need to write script to see if application is running, if application state running run some command else run echo command to state application is not running.So I need to run the first command, then based on output (Application status), run the second command else echo command.
View 6 Replies
View Related
Oct 3, 2010
I need to add a comment to /etc/passwd using usermod, but everytime I do it tells me that I can't modify a user in the LDAP database without DN. What is DN?
View 7 Replies
View Related
Mar 31, 2010
I am using SLES10 and i checked with command crontab -l and when i compared it with the cron.d/daily/monthly/hourly , all they are different. is there any single command that list out all the cronjobs that exist under the system.
View 3 Replies
View Related
Dec 17, 2010
i tried to install java jdk, and vlc, but to my surprise everytime i wanted to install a single application, a massive 500MB update appeared along with the 2 applications i wanted to install, then i tried the command line to just install one program, and got rep. errors, and several .lock errors at the command line. after hours of googling i gave up , this distro was recommended because of great laptop support, but it's a hell of trying to install a single program, with fedora i just did su -c 'yum install vim' , or ubuntu sudo apt-get install vim or slackware: installpkg vim.tgz , but opensuse was so bloated whenever i wanted to install a program or two. it is a royal pain to install anything in opensuse how do you guys deal with dependency hell in opensuse?
View 2 Replies
View Related
Aug 8, 2010
I use vncviewer command line to remote access my pc from my notebook.
Is there any option to resize the view like windows client can by percentage?
my notebook screen size is 1280x800, while I use bigger resolution for my pc 1280x1024 if not mistaken.
already look here: http://linux.die.net/man/1/vncviewer but I don't see any option to do that.
View 9 Replies
View Related
Sep 7, 2010
i ran into a problem when i installed mplayer on suse 11.1 from source, it works just fine BUT it has no GUI.When i try to use the command "gmplayer", it returns 'bash: gmplayer: command not found
View 3 Replies
View Related
Jan 26, 2009
I am using SUSE 11.0 KDE 4.0 . My system has root user, one normal user and both are me only. I am using only 'user account' only.I used to install softwares from 'user account' by using YAST.
Now my problem is - when i am trying install a rmp file through YAST, it ask root password by a dailog window. when i entered the root password it is giving error
Quote:
The program 'SU' not found. </br>Make sure your path
I had attched a screen captured image of that window.
And then after i had to be ignore that message. Installation just starts and then gives error, installation fails. so now i am not able to install any softwares through YAST !
View 2 Replies
View Related
Jul 20, 2010
I intend to re-install open suse 11.2, 32-bit. On a previous install,suse did not provide a grub entry for ubuntu.My current setup has
ubuntu/root on /dev/sda6
ubuntu/home on /dev/sda7
ubuntu/usr/local on /dev/sda8
[code]...
View 4 Replies
View Related
Nov 18, 2010
I've got several language multimedia CD-Rom's, made for Windows 95/98/98 SE and 2000, that I'm using by means of my daughter's old PC (Win 98 SE O.S.). However I noticed, also, that you can perfectly use them even with Windows Vista. What I'd like to know is if you can use them even with Suse/Novell and (why not?) OpenSuse Linux.
View 4 Replies
View Related
Jul 5, 2009
OK... I tried everything i could think of... but i still cannot get my Open SUSE 11.1 to mount my samba share at boot! I still don't understand the 11.1 boot sequence. can NE one help me... tell me what files to give you output from... Ty guys P.S. My shares originate from a Windows Server 2003 RC2 machine, and it's dns server doesn't work correctly... so my mount command is
mount -t //192.168.x.x/files/ /nET/ -o username=linux,password=xxxxxx
please let me know what other info you need... I don't have the internet, so it will be tommorow b4 i see this again!!! Thanks
View 2 Replies
View Related
Sep 8, 2010
When i am adding a user using "useradd -d /home/test test" or "useradd test", it is now creating the home directory, whereas when i am using the graphical mode and going through several menu options, i am getting the home directory.
View 1 Replies
View Related
Sep 16, 2010
how to install a D-Link Access Point on Suse 11.0 or steer me toward documentation that will do that? I configured the device on XP following instruction from this forum and the AP configured perfectly.The AP is plugged directly into the network port on the computer. It *should* function correctly without a router. I tried a restart and Suse has no idea it's there. The computer is currently configured for a wired connection which needs to be changed. The computer itself is going to be used as a small home storage server.
View 3 Replies
View Related
Nov 4, 2010
I have a disturbing problem with my monitor which goes to sleep (or ??) after few minutes if my comp is not used and most of the time I have to restart my comp.I disabled everything in Powersave , but nothing. I did have that problem in previous versions of SUSE, but somehow, I solved that. I cant remember what I did then.
View 4 Replies
View Related
Aug 23, 2010
I've pre-partitioned my HDD and want to install 11.2 on the second primary partition.However, when using the installer, I can't get Suse to install on the prepared 20gb partition - it keeps insisting it wants to install on the large unallocated section of the drive.
I find the partitioner somewhat hard to use and the answer may be staring me in the face but I can't see it.
View 2 Replies
View Related
Feb 1, 2010
I tried to use different version of Python, and followed the Readme like this
./configure
make
make test
[code]...
View 3 Replies
View Related
Oct 13, 2010
PackageKit Error repo-not-available: File '/repodata/repomd.xml' not found on medium 'http://download.opensuse.org/repositories/KDE:/KDE4:/Community/openSUSE_11.2/' My 11.2 won't update and gives this error. Anyone know how to fix it?
View 2 Replies
View Related
Jul 19, 2010
New Suse 11.3 installation with Gnome desktop. Added K3B using Yast2, and after completing the install of K3B, there is no icon for K3B! Instead there is an "X" and the text for K3B in it.From the main menu -> more applications -> multimedia, is where the K3B icon is.Yast2 is supposed to install any dependencies needed or warn if it can not find any missing dependencies. What is missing, or is it a permission problem? All the other application icons seem fine.
View 4 Replies
View Related
Feb 4, 2010
The software use to work well here, but now I got this when I try to run it
sparky: error while loading shared libraries: libtk8.4.so: cannot open shared object file: No such file or directory
But I can not find it.
I also tried
cd /usr/lib
ln -s libtk8.4.so libtk.so.0
ln -s libtcl8.4.so libtcl.so.0
but this does not work neither.
View 4 Replies
View Related
Jun 7, 2010
Bash's command history is great, especially it is useful when adding the history -a command to the COMMAND_PROMPT.However, I'm wondering if there is a way to log the commands to a file as soon as the Return key is pressed, e.g. before starting the command and not on completion of the command (using the COMMAND_PROMPT option would save the command once the prompt is there again).
I read about auditing programs like snoopy and session recorder like script but I thought they're already too complex for the simple question I have. I guess that deactivating that script logs all the output of the command would lead already in the right direction but isn't there a quicker way to solve that probelm?
View 1 Replies
View Related
May 9, 2011
Up until now I've been using plink to remotely compile a project I'm working on. But recently the administrator from the remote server updated the distribution and messed up some configurations. My project has a lot of scripts written for tc shell (tcsh), and now the default shell is bash. There is no way to change this. Another problem is that now I need to run newgrp to change my default user group.
So... to work around this problem I've changed my .bashrc to run newgrp and then tcsh. If I do a normal connection using SSH, everything works as expected, but when using plink, or SSH to remotely execute commands, the shell gets stuck on the newgrp command. I think it's because both applications need a return value from newgrp to send the command I need to execute. Remotely running scripts that call a shell also get stuck like newgrp (newgrp also opens a new shell and that's why it gets stuck) my .bashrc is as follows:
Code:
user_grp=`id -g`
if [ $user_grp != 4919 ]; then
newgrp new_group_id
else
[code]....
View 4 Replies
View Related
Aug 19, 2009
I have a script which builds a project and then runs junit tests. However, if the build fails, the junit tests fail with the same error message.Therefore the command which runs the junit tests should only be executed if the build was successful.
View 3 Replies
View Related
Oct 13, 2010
I have seen command like $rm aa dd cc bb ee then something like $ >> zz // it removes zz also Where aa dd cc bb ee zz are the files in my directory. Do not know exactly.
View 6 Replies
View Related
Oct 25, 2010
I have been searching for 2 days and cannot find an answer. Apparently Sax2 isn't available in 11.3. It looks as if many are having the same difficulty. I've tried xrandr and tried to edit /etc/X11/Xorg.conf with no success.Copying a working xorg conf file might be a fix, I don't know.
View 8 Replies
View Related
Oct 4, 2010
I use Termlite from SCO as my terminal emulator. It works on SUSe 9.3 but i can not get it working on 11.3. How do I enable the networking for this in SUSE 11.3.
View 1 Replies
View Related
Nov 19, 2010
to get flash 10 working. I just decided to update to 11.3. Bought a 8.0GB USB stick to copy files to. USB DISK icon on visible on Desktop. mounted on /media/USB DISK Clicking on device properties it is read only. I can change permissions but that is only temporary. Looking under my computer it is formated as vfat device name is /dev/sdb
I can't copy any files to it. Can't see in terminal even being root as well. Almost started the Partitioner in Yast but didn't want to accidently crash the system. That WOULD be my luck Can't find a way to format it via GUI interface. Can I use something like fdisk in terminal. I guess I need to format it as ext3.
View 7 Replies
View Related
Feb 18, 2010
I have SuSE 11 box. I notice that there's an entry in /etc/services that shows windream running on port 534. Can someone tell what is windream? I tried to google but it keeps bring up German website or something.
View 1 Replies
View Related
Jan 9, 2009
I accidently removed bottom panel of suse 11.1.Please be so kind to help me to get it back my bottom panel.
View 6 Replies
View Related
Jan 8, 2010
Problem started after installing a new firewall in my network. originally after installing the firewall there would be a 10 second delay after entering a command before it was processed, the command would be executed however there would be an error, i forget what it said, something about not being able to resolve my domain name (and it would give my domain name). i realized this was a problem with my NAT, so i configured DNS forwarding on my firewall so that any attempt to access my server using my domain name from inside the network would point back at my server. after setting up the DNS forwarding i no longer receive the error about my domain name being unreachable, however there is approximately a 30s delay between entering a command and its execution.
the problem is hardly critical i do not see any more serious problems, it is just a pain to do any work when every time i try to do something i have to wait for it to execute.
View 6 Replies
View Related