Ubuntu :: Write A Shell Script To Run The Configuration Of Vim Editor?
Apr 12, 2010
I have a question, tried to search on the Internet but it is hopeless. I want to write a shell script(bashShell) that will run commands of configuration for vim editor.For example: in the script, it will run ":let", ":set", ":highlight" to configure for vim editor. In addition to, when I searched a pattern and wrote it to file,ed vi to open it automatically. But, I couldn't highlight a word(that is the pattern I'm searching) in vim automatically
View 3 Replies
ADVERTISEMENT
Feb 17, 2010
I want to write a shell script which will simultaneously collect OS user information and write in an individual text files.Can anyone tell me the syntax of the script.N.B. The user name will be mentioned in an array within the shell script.
View 8 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
May 11, 2011
In my rather unsuccessful attempt to get gvim working properly (see [url] )
I am now considering using some other editor in windows which will allow editing of ssh shell script *on the linux server* directly.
At the moment I'm using winscp's editor which is no better than notepad really (no syntax colouring / code folding / colour settings)
View 2 Replies
View Related
Apr 28, 2011
I'm trying to be able to Open a text editor without needing an existing file.This is my code:
case $ans in
"Show Today") echo "$(date)";;
"Show Calendar") cal;;
[code]...
View 14 Replies
View Related
May 5, 2010
I am using Ubuntu 10.04 through VMware Fusion. Works great. What I would like to do is add the Configuration editor to my Applications menu and I would also like to be able to edit and modify the Applications menu. How can I do this?I tried alt-F2 to launch the editor but it didn't work. What can I do?
View 3 Replies
View Related
Feb 21, 2010
I accidentally deleted my upper panel and I had to restore it. However, when I decided to custom my time and date format using configuration editor (gconf-editor) through apps>panel>clock_screen0, the clock_screen0 folder is missing. Only several folders entitled applets with corresponding numbers are shown.
I once was able to customize it so now I'm really confused why it disappeared.
View 1 Replies
View Related
Apr 1, 2011
I write a shell script below to add a job to cron.
#!/bin/sh
touch date.cron
echo '*/3 * * * * /usr/sbin/ntpdate 192.168.2.3' >date.cron
[code]....
View 4 Replies
View Related
Nov 2, 2009
unable to write a shell script to vi
View 1 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
Mar 24, 2011
I'm trying to write a toy linux shell. For starters this is what I'm trying to do:
1. Start a new process with fork.
2. Execute a program in the new process with execl().
3. Redirect the output from the new process from STDOUT to another file descriptor, using dup2(2).
4. In the parent process, read the output from the child process and write it to the screen.
Creating a new process and executing a program in it is no problems, the problem is that I can't seem to capture the output from it in the parent process.
Code:
//digenv
//C++arl 2011-03-24
#include <stdio.h>
#include <sys/types.h>
[code]...
View 14 Replies
View Related
Aug 6, 2010
Writing a Shell script which changes my X11.org config to 800x600 from any other resolution .
View 1 Replies
View Related
Sep 23, 2010
Canceled a sys backup in progress now my Waste bin is at max and must be emptied.However OpenSuse 11.3 contradicts itself by claiming there is 0 in the waste bin? Perhaps there is a Bash command that would solve the problem
View 8 Replies
View Related
Oct 14, 2010
I am new and start learning how to write korn shell, can you someone please translate the below command to common English? code...
View 1 Replies
View Related
Dec 11, 2010
write a shell script that allows only user 1 and user 2 to execute a program and only from terminal 01 and terminal 02
View 4 Replies
View Related
Sep 16, 2010
I wish to create my own shell for my operating systems project in college...
My professor has asked me to make sure that my shell can execute at least 30 or 40 commands... I have around a month's time
I have seen endless source codes in the net, I'm not able to understand any of it
How do i get about doing it?
View 2 Replies
View Related
Aug 21, 2011
I recently installed this awesome distribution - Fedora 15 x64 because of the Gnome 3. I love it. But i have problem with adding music library folders to rhythmbox. I' ve been using gconf-editor for that on all debian based distributons i worked until this. I installed gconf-editor 3.0.0-2 but cannot find the entry for rhythmbox player. Can you tell me how to fix this ?
View 2 Replies
View Related
Sep 10, 2010
On this Red Hat Box that I am using there is no .vimrc file for the user root. So, I created one and entered only one line to highlight syntax with colors when I am writing scripts in PHP and Bash. But it is not working.
Code:
[root@localhost ~]# cat ~/.vimrc
syntax on
[code]....
View 6 Replies
View Related
Feb 8, 2010
I'm trying to write a simple shell script, its purpose is not important. The script needs to make use of the system $HOSTNAME environment variable. I had a look at this page which provides the following example.
Code:
#!/bin/sh
echo "You are user $UID on $HOSTNAME"
echo "Your home directory is: $HOME"
echo "$HOSTNAME is running $OSTYPE"
[Code]...
View 6 Replies
View Related
Jul 23, 2010
I have a number of text files throughout my /home/pjs/Documents directory tree that have execute permissions set. Almost all of my file names have spaces in them. I am trying to write a shell script that will look at each file in my Documents directory, find the ones that have execute permissions set, and run the command chmod 644. Of course, I don't want the command run on the directories.
The following script *doesn't work*, but might serve to illustrate what I am trying to do:
#!/bin/bash
for x in "$(ls -R)" do
if [ -f "$x" ] && [ -x $x ]; then
chmod 644 "$x"
fi
done
I want each file and directory name to be placed, one by one, in the variable $x, and then tested with the "if" conditionals.
The first problem seems to be that, although the command "ls -R" does produce a complete list of the files and directories I need, they are not placed, one by one, in the variable x like I want them to be.
Also, I think I should use the shift command so that the option -R doesn't get included as one of the values of the variable $x, but I can't figure out where to put it.
View 14 Replies
View Related
Sep 22, 2010
I need a help regarding writing a function in a shell, what exactly a function does!!
View 3 Replies
View Related
Oct 22, 2010
I want to write a shell script contains python one. So,the result of python one is flv file. I want the path of this is copied into a enviroment variable that i have to pass as a flag argument of another program (to convert into mp3). To individuate the result of python script I thought to use (in PWD)
Code:
ls | grep -E '^.*mp3$'
But my question is: How can I copy this result into enviroment variable?
View 4 Replies
View Related
Oct 21, 2015
I installed elog 2.9.2+2014.05.11git44800a72 on my Jessie system. When entering a new post just a simple plain text editing box is shown instead of the WYSIWYG editor, and no drag and drop area for attachments is shown. When I start the elog service with "systemctl start elog" I get this suspect message in the journal: "FCKedit NOT detected".
Indeed, I see that the elog installation creates a symlink which I guess is supposed to point to the fckeditor installation, which nevertheless is missing:
Code: Select allroot@static-3-080:/usr/share/elog/scripts# ll fckeditor
lrwxrwxrwx 1 root root 15 Oct 25Â 2014 fckeditor -> ../../fckeditor
root@static-3-080:/usr/share/elog/scripts# ll ../../fckeditor
ls: cannot access ../../fckeditor: No such file or directory
I installed ckeditor 4.4.4+dfsg1-3 but his did not fix the problem. I'd say that either the elog package is broken or that it misses a dependency on a package providing FCKedit. Or maybe my system is misconfigured?
View 0 Replies
View Related
Apr 29, 2011
Howto change default editor by live usb-hdd creation? Normally, I can change from the command line:# update-alternatives --config editorbut howto put it into live config?
View 1 Replies
View Related
Jun 26, 2010
How do i write a shell script to ssh into a remote server with password and run a script in it?
View 2 Replies
View Related
Jun 4, 2010
I do not know how to write either PYTHON or Bash Shell Scripting. I am to learn one for Linux Administration purpose. Which one will you recommend for a Linux Admin/Eng environment?
View 4 Replies
View Related
Apr 21, 2011
i have to write a shell script that will delete all the .dat files in /var/oracle/etl/incoming which the created date of the file is 7 days before the currrent date.
View 8 Replies
View Related
Apr 14, 2011
Write a shell script setup linux security policies include:
1. password policy
2. User policy
3. firewall
Note: Create a file.sh from 1 to 3. purposes:
If (1) successful then 2 If (2) successful then 3 End
View 3 Replies
View Related
Feb 12, 2011
i am trying to write a shell script which will check my IP and domain name in rbl and inform me if it is listed.
View 4 Replies
View Related
Mar 25, 2010
write shell script for copy files to usbdąsk that cosist of very long argument like "2009025_efkl".
View 1 Replies
View Related