1,891 Topics

Member Avatar for
Member Avatar for ankur.dhoot

This code changes color of prompt according to user, suppose if user is root then color would be red and normal user would have color black. This'll diffrentiate in users.

0
147
Member Avatar for Stylish

Here is a little spinner thing for the command line, used when your current bash script is waiting on a background/system process. The weird character is ^H or a backspace.

Member Avatar for cfajohnson
0
252
Member Avatar for Paul.Esson

I know what your thinking, You and everyone else has always wanted a clock that sits at the top of your command prompt and tells you the time. Why ? I made this in first year when i spent countless hours programming and little in bed. I decided i needed …

Member Avatar for Mpiangu
0
158
Member Avatar for deboogeek

Hello, I have used bash scripting for sometime in the past and know quite a bit of linux. But haven't used it in a long time. I am off job and took some data entry job where I need to do some stats work on a very long list of …

Member Avatar for deboogeek
-1
178
Member Avatar for Ctpwwner

I am attempting to familiarize myself with BASH so i can work in a Unix environment. I want to export a shell variable to a simple C program but seem to be unable to do so. Here is the C program: (i am also very unfamiliar with C but this …

Member Avatar for Ctpwwner
-1
99
Member Avatar for baula

Helo frndz, I'm novice in shell scripting...I need ur frnd help to write a shell script for taking backups. This script should use cp command to take backups. Script can read the list of directories and destination directory from a file or ask user for this info interactively... Example: Only …

Member Avatar for baula
0
216
Member Avatar for skelly16

Hi Im writing a script where im using the date command in this format. [Datestart=`date '+%m/%d/%Y':'%H:%M:%S'`] Is their a way to force the date variable above to go back 5minutes?? I know their is a way in perl but i prefer writing this script in ksh

Member Avatar for Salem
0
123
Member Avatar for riahc3

Hey Ive been asked (and I may add this to my system as well) to make a shell script that backups to all files in x location to another location in z. The thing is that the backup must only be made if one file has been changed. Example: /x …

Member Avatar for sknake
0
200
Member Avatar for waldchr

Is it possible to change the desktop background, hide the desktop icons, and hide the menu bar (in windows) using a batch script? If not, could someone direct me as to how to do it in C/C++? Thanks

Member Avatar for waldchr
0
94
Member Avatar for shraddha_gupta

I want to run multiple test cases, for a java program. How can i write script that causes the same program to run for different test cases. Test cases need to be included in same file or different files? how to write the script?

Member Avatar for Salem
0
56
Member Avatar for chris5126

HI Guys, Prob a very simple one but im stumped, I run the following command and get: [code] date Wednesday, 19 August 2009 09:20:59 BST [/code] But when I run [code] date -u '+%y%m%d.%H:%M:%S' 090819.08:21:27 [/code] My question is why is the second command an hour behind? In my environment …

Member Avatar for iceman29
0
195
Member Avatar for skelly16

Hi All Facing issue with using sed and globally replacing a word with date variable for a sql file. Any help would be appreciated. [code]sed -e "s/DATEST\/$DATESTART/g" $SQLREAD > $SQLNEW sed -e "s/DATEST\/08/25/2009:07:41:41/g" /uat/ut21_sysmon/quest/foglight/JJ/jjsql Suffix too large - 512 max: s/DATEST\/08/25/2009:07:41:41/g[/code] Thanks

Member Avatar for skelly16
0
358
Member Avatar for darangho

Hi all I just have questions about how not to show messages after you execute a certain command. for example whenever you execute "which xxx" there will always be a message on the terminal saying its path or command not found will be written. is that possible to write a …

Member Avatar for sknake
0
144
Member Avatar for rinque

As mentioned in the title. I wrote a script that has pretty long execution time. Some user just close the window half way and in the end cause some file corrupted. Is there any way to prevent the user closing the window? (Like turn the 'x' button of the window …

Member Avatar for rashshell
0
135
Member Avatar for codester

I'm new at scripting and I need help with converting multiple ".TXT" files to one ".CSV" file. Each file will have a different number of lines, then after the last line there is a blank line then more data, I don't want to use the data after the blank line. …

Member Avatar for codester
0
186
Member Avatar for deathknell

Hi all, I try to make a system where client can send their sms (contained contact file in it that compressed) to server using sms gateway concept. In this case, server must handle 3 condition : registration, request sending file to server (by client), and request take file in server …

Member Avatar for deathknell
0
618
Member Avatar for pixiewolfe

Hello, I would like to download a compiler that works with max os x MacBook Pro that when doing my Unix homework I can compile and then know it works before I go to the University's website to log in and run the program. Or do I have to use …

Member Avatar for sknake
0
33
Member Avatar for biobee07

Hello, I am trying to write a bash shell script that does the following: I would really appreciate if someone can help me correct my code that i have written below: 1.Finds all *.txt files within my directory of interest (files are in sub-directories) 2. reads each of the files …

Member Avatar for sknake
0
189
Member Avatar for krishnendhu
Member Avatar for jchilley

I am attempting to set a ulimit inside of a script to be run by TWS/Maestro. Can't figure it out. Does anyone have any ideas? :-/

Member Avatar for Fernando3
0
1K
Member Avatar for AshokConcord

Hi, I want to upload a file recursively using curl command, the file is in the directory where i am running the script here is the details 1) The file rss.txt is in this directory [ashok@qa-adm-001 rss]$ pwd /home/ashok/rss 2) If i run POST request as a command, the file …

Member Avatar for sknake
0
169
Member Avatar for karpaklu

hai dani, pls anyone help me how to add data into filename actually i tried like this: $str|cat >> EmpFile for the above statement im not able to do coz even $str is also considere as command. how to insert the value?

Member Avatar for sknake
0
63
Member Avatar for Assaulter of Bu

I have a directory called "images" filled with about one million images. Yep. I want to write a shell command to rename all of those images into the following format: original: filename.jpg new: /f/i/l/filename.jpg Any suggestions? Thanks, Dan

Member Avatar for sknake
0
83
Member Avatar for shekarls

Hi guys, I have the following information in a text file, which looks like this: -rw-rw-r-- 1 user user 12203 Aug 6 01:02 app1.sql -rw-rw-r-- 1 user user 12343 Aug 6 01:02 app2.sql -rw-rw-r-- 1 user user 12238 Aug 6 01:02 app3.sql I need to Trim the unwanted strings and …

Member Avatar for sknake
0
92
Member Avatar for bhas85

Hi all, I am very new to shell scripting.I have the requirement like one program is there, if it is running leave like that only and if it is stopped it has to be restart and once again keep watching and it is stopped we a have to restart once …

Member Avatar for bhas85
0
147
Member Avatar for b1ue

Hi. iv'e been looking around the web trying to find a suitable script to use with my hltv servers , unfortunately to no avail :( . I'm just wondering if anyone here could perhaps help me out with a shell script to do what i need it to , i …

Member Avatar for Fest3er
0
158
Member Avatar for lehe

Hi, I call "set -o notify" to notify me when my background jobs finish. I find that the messages upon finishing are different: for some job, it starts sometimes with "[jobID]", sometimes with "[jobID]+" and sometimes "[jobID]-". I wonder what they mean actually? Do they mean the jobs are finished …

Member Avatar for sknake
0
259
Member Avatar for herms14

hey there...could I please ask for some help for my programming assignment. I having a problem in assigning values to a variables inside a function. I don't know what im doing wrong...any suggestions could be a great help..here is my code [CODE] a = 0 myfunc(){ echo $1 "Computation" a …

Member Avatar for sknake
0
88
Member Avatar for fallopiano

Hi all. I'm not sure if this is the correct place to post this, but whatever. I have a simple .reg file that adds the command 'Open Dos Box' to the menu that pops up when you right click a file (on windows) I want it to open a DOS …

Member Avatar for fallopiano
0
374
Member Avatar for networkingnub

I just need help understanding how DOS and BASH handle globs. All I ever see is the output but it's not giving me any knowledge on the whole process. How does dir * interpret the wildcard differently then ls *?

Member Avatar for sknake
0
95

The End.