General :: Create A Simple GUI For The Bash Script Files?
Feb 20, 2010
Are there any tools that can be used to create a simple GUI for the bash script files i have created, and the GUI should be able to run on both Solaris and Red Hat systems.
View 4 Replies
ADVERTISEMENT
Aug 2, 2009
Ive been using linux for a while but I am just getting into shell scripting, im currently trying to get a simple script for finding and copying files powered by the command:
Code:
This works fine from the command line but when put in a script such as:
Code:
Code:
with the keyboard inputs for $fc1 and $fc2 being *.doc and ~/test respectivly. The only problem i can see is the xargs -ivar "var" part possibly needing $var to be defined?
View 2 Replies
View Related
Jan 31, 2011
I have a folder of 2 many files that the old ls just hangs.
I am trying to write some log files such as;
I don't mind doing one at a time, but I am just playing and even getting the listing I am not getting the date stamp, I have the following;
That does create the file, but all the files look like this;
So basically it's just sticking that ls inside the log file and not actually running the ls, so how can I use the above type to get files just created per year?
View 2 Replies
View Related
Feb 18, 2010
When I run this command from shell, it runs ok
export REVS=`svn info svn+ssh://svn.myone.ca/var/svn/story/trunk/lib |grep 'Last Changed Rev:'| awk -F: '{print $2}'`
However when I save it into a file called test.sh (of course, I chmod it with +x), I got error "export: 2: bad variable name"
Here is the file:
#!/bin/bash
export REVS=`svn info svn+ssh://svn.myone.ca/var/svn/story/trunk/lib |grep 'Last Changed Rev:'| awk -F: '{print $2}'`
I am using ubuntu.
View 7 Replies
View Related
Jul 9, 2011
I wrote this script which works but it should run automatically about once per week. I hunted and experimented with KDE Task Scheduler (no dice and no help anywhere) and cron (confusing instructions and cannot edit crontab -e with vim, and cannot enter cron folders/files). I would settle for a desktop shortcut to run the script but found no for that.
Script:
Code:
#!/bin/bash
xterm -hold -e fstrim -v /
Machine:
OS: openSUSE 11.4 x86_64
[code].....
View 13 Replies
View Related
Dec 24, 2010
All of a sudden,i can't execute a simple script as follows:
exit 0
and:
exit
View 18 Replies
View Related
Apr 3, 2011
How to made a simple website in linux using bash scripting.
View 3 Replies
View Related
Mar 8, 2010
I want to create a simple website which can communicate with unix server.For example i want to run some command on a unix server through a website.
View 10 Replies
View Related
Jan 19, 2011
I would like to create a bash menu script for my home server For instance if i were to type ./script It would then bring up 3 options
a. Create a backup
b. Restore files from a backup
c. Quit
If you were to select a or b it should then ask you were you want to backup or restore from. And if i were to type in an incorrect letter i should get an error and take me back to menu. I have attepmted this a view time now and have magaged to get the menu up using parameters
View 9 Replies
View Related
Apr 22, 2010
I have written this simple script to delete files and keep a log i have put this script in crond job
The script check the test directory in /home/francis if it encounters a file which is a 30 days old it must delete that file and place the file deleted in mylogs as a log report the script works fine i manually i have two problems:
First when the script ram the first time it generated the log of the files it deleted but the next day when i came it deleted the file but no log was generated
Secondly i run the script every day at 9 am this is the entry made in crond file * 9 * * * ~path to file but it seems to run every minute i even triedseperating the fields by tabs still the same
View 7 Replies
View Related
Sep 15, 2010
Syslog is used to store simple log files or we can manage them too? Well, the thing is, that I need to run a software (like syslog) to collect my logs and put them in order and organize them so it makes them "understandable". I have been told that syslog can do the job and that it doesn't need a complex configuration to work.
View 12 Replies
View Related
Jul 29, 2010
what command is to be used to call strings from other files to the script and then comparing strings from two different files in the script to check if strings are matched then return the result to another script.
View 1 Replies
View Related
Nov 7, 2010
I have been looking at: ut a lot of it is to do with files and numerical comparisonswhat would be the bash equivalent of:if (http isin $2) { do something }
View 2 Replies
View Related
Nov 4, 2009
I am trying to create a function that takes a pair of a high and a low limit, and returns an arbitrary number between them. Below is my attempt to create a function that accomplishes this by checking to see if they are equal, and if not, subtracts a very small number from the high limit and returns the result.
View 2 Replies
View Related
Jun 12, 2011
create a bash script with "if" statements and to do that I need to learn some bash programming. I will probably do it later but I want to create some script today so maybe The script should do this:
Code:
I enter something like this string with a script path:
$ ~/watch-script http://www.......com/watch?v=OI3gKGhe0QM
[code]...
View 5 Replies
View Related
Feb 23, 2010
I wanted to do this:
Code:
ssh root@10.10.10.10
How would I create a shortcut in BASH so that I can simply type:
Code:
mypc
I want to be able to execute commands like that; like you can with ls, cd, grep, etc. Do I create a BASH script and place it in /bin?
View 14 Replies
View Related
Mar 3, 2010
does anyone know how to calculate an average in a simple way with bash? I've got something like this:
Code:
$ cat results.txt | head -10 | tr " " " " | cut -f13
0.23929285124
0.404716908011
0.35113102608
[Code]....
and now I want to calculate the average of the resulting numbers. I know I could write a bash or awk or perl script and use that, but isn't there a more simple, elegant way? There is for example "sum" in the coreutils, but no "avg"..
View 9 Replies
View Related
Jan 21, 2010
I have create some simple bash script file (.sh), and i would like to find out what are the steps that i should do so that the GUI form is able to call out and run the bash script file (e.g clicking the button on the form, and the script will run).
View 1 Replies
View Related
Oct 26, 2010
I am trying to use the date command in a simple bash script as below:
#!/bin/sh
this_date=`date`
echo "The date is $this_date"
This script seems to work only if a surround the command with the `` characters, which I copied from another script. Can anyone tell me why this is, and how I can insert these characters from my keyboard,which only has normal quote and double-quote characters?
View 5 Replies
View Related
Jun 14, 2010
I am running a simple script that I copied from slug.ceca.utc.edu/docs/2009-3-26-linux-server-health.pdf and edited with the names and paths of my own servers. I don't know much about scripting (re: nothing) but I wanted to try and be efficient in my new role as a Linux Sys Admin. The script was saved to root's home directory and runs as part of root's crontab once a week. The script runs with no problem, but it doesn't actually seem to run all of the commands contained within. It skips some in the middle and the end and I don't know why. The script itself is this:
Code:
#!/in/bash
uname -a > /tmp/server.txt
[code]...
View 5 Replies
View Related
Sep 14, 2010
I have a very simple bash script:echo -n Create home directory?:
read HOMEDIR
if [ $homedir="y" ] || [ $homedir="yes" ]; then
homeval=" --makehomedir"
[code]...
View 6 Replies
View Related
Jan 21, 2011
have a built piece of software that I wrote with a whopping 3 files included total.Iwant to package this inside an rpm. I don't need complex stuff like postinstall scripts, dependencies, subpackages, or any of that stuff. I just want a simple rpm with the 3 files, a package identifier, and a summary. I am not planning on posting this rpm on a repo such as fedora or rpmfusion.
View 1 Replies
View Related
Mar 26, 2011
How to create a simple Makefile using C....
View 3 Replies
View Related
Aug 4, 2011
I recently bought an host to have a personal website and would like to create a bash script to create make a mirror copy of it and then add it to crontab to run once a week. Essentially what I want to do is to get the website by using wget -m ftp://user***@ftp.host/mydir
Once this is done I'd like to have everything in an archive called mysite.date.tar.7z I've no experience at all of bash scripting but I guess this should be an easy task? How to make the user and password not visible ? Is there any other option better than wget? (maybe rsync it works better?)
View 2 Replies
View Related
May 26, 2011
Is there any other short/easier and smarter way to do the following in Linux? code...
I need to use crontab to create folders every day and every month inside /home/abcd/dammi, /home/abcd/harrami, /home/wxyz/dammi and /home/wxyz/harrami. Can anyone help me with this?
View 2 Replies
View Related
Jun 24, 2011
I need to create a simple diagram - basically, a small binary tree with labels on the nodes. I would probably posting that as a graphic illustration for a forum or blog post (but not at these forums).Looking at KDE menus, "gimp", "mtPaint", "LibreOffice draw" and "Inkscape" look as if they might be possibilities.When it comes to drawing, I'm am all thumbs (hopelessly incompetent). So what do you folk suggest as an easy way to get the job done.
View 5 Replies
View Related
Mar 8, 2010
GNU/Linux kernel 2.6 Suppose I have 7.5GB file a I want to create two DVDs with it as simple data. Can I do this? And how do I retrieve the file afterwards?
View 4 Replies
View Related
Jan 5, 2010
What is the step by step procedure of creating simple DNS in redhat enterprise linux?
or by using simply named.conf,resolve.conf, with forward zone & reverse zone.
View 4 Replies
View Related
May 13, 2011
I simply cannot find anyway to create a simple desktop shortcut. I am Using Linux Ubuntu 11.04 with the Unity Interface. I love the panel on the side, but I would also like simple desktop shortcuts also. I can't do it. I tried dragging them on and nothing, I tried right clicking to see if there was an option and nothing. Where can I do this?
View 5 Replies
View Related
Nov 26, 2010
I'm looking for a tutorial on how to create a simple pppd tunnel between two machines. I've found alot of tutorials about pppd over ssh (using the pty option) but for the purpose I just want a simple pppd tunnel.
Specs
host 1: lan ip 10.101.10.20 running slackware 13.0
host 2: lan ip 10.101.10.21 running slackware 13.1
View 2 Replies
View Related