1,817 Topics

Member Avatar for
Member Avatar for dilkash2007

hi, i'm a very new in unix, can u help me how would i start to read sell programming. can u suggest me some name of tutorials thanks

Member Avatar for DimaYasny
0
47
Member Avatar for cnet1989

I want to write a shell script that finds files in a directory that are (owner permissions) readable, writeable, or executable for the owner. But I don't know the command to list files with certain permissions (rwx)... I'm sure it has something to do with ls, but I just can't …

Member Avatar for dilkash2007
0
60
Member Avatar for ashikin_8119

Hi all; I'm having headache on append one line to another based on the fix position.Hope u guys can help. All i need to do is append the line that start with '3' to a line which start with '1' and the position for line 3 that i need to …

Member Avatar for ashikin_8119
0
57
Member Avatar for chrchcol

I am trying to write a command line bash script that will allow you to send mail to an email address using some variables. The email is a signup form with username and passwords. The subject line and most of the body will be hard coded. The script should ask …

Member Avatar for riotxix
0
205
Member Avatar for tomok

Hi guys, After trawling through the forums and interweb, hopefully someone here can offer me some help with sed! I have a csv file that contains records. Each field is delimited by a comma, and each row is delimited by a \n. However, in some cases, I need to remove …

Member Avatar for eggi
0
112
Member Avatar for bungley007

hey I need a script to set a display to users ip's, I just need help putting it togther the command i need to run is setenv DISPLAY ipaddress:0.0 And i've got this to grab the ip and pop in the :0.0: who|grep user | awk '{print $6}' |sed 's/(//g' …

Member Avatar for eggi
0
80
Member Avatar for php.mca

Can any one tell me how to convert any types of file to pdf? I want a shell script or a software in opensource? is there any software that can do this? Please help me. I would be very much thankfull to u. thanx in advance Dushyant Joshi

Member Avatar for TheOgre
0
1K
Member Avatar for techbrain55

hello there I am new into scripting . What is the use of unix shell scripting with oracle and how can I combine oracle with unix shell scripting? Any replies regarding this would be great. Thanks in advance, Techbrain55

Member Avatar for chris5126
0
57
Member Avatar for virendra maloo

Hi, I am trying to call a certain command from within a shell script, but everytime it executes the script, only the first command runs and it comes out of the control, how do i do it? code : ```````` #!/bin/sh # # #i=1 #while [ $i -le 3 ] …

Member Avatar for eggi
0
68
Member Avatar for cdfd1982

A file is ELL[COLOR="Red"]P[/COLOR][COLOR="Red"]S[/COLOR]YST[COLOR="Red"]A[/COLOR]TL ELL[COLOR="Red"]S[/COLOR][COLOR="Red"]U[/COLOR]YST[COLOR="Red"]L[/COLOR]TL * * *[COLOR="Green"] : . [/COLOR]* * *[COLOR="Green"] :[/COLOR]* * H[COLOR="Red"]H[/COLOR]ULJKL[COLOR="Red"]O[/COLOR][COLOR="Red"]P[/COLOR]OA H[COLOR="Red"]P[/COLOR]ULJKL[COLOR="Red"]P[/COLOR][COLOR="Red"]O[/COLOR]OA * [COLOR="Green"].[/COLOR] * * * * *[COLOR="Green"] : : [/COLOR]* * and it is a long file ..... so output shud be where there is[COLOR="Green"] : [/COLOR]and [COLOR="Green"].[/COLOR] counting start from E and …

Member Avatar for rikxik
0
138
Member Avatar for learnbash

Hi Folks I need help about a script. Here are the detail of of Script. I have total 3 files which have following records. 1. file1 -> contains all userids 2. file2 -> random userids, some are present and some are not. 3. file3 -> ls /home file, whever directories …

Member Avatar for eggi
0
132
Member Avatar for cyberdyne

hi frnds, I need a batch program that can reboot every time a system starts.It should work in NT systems too.

Member Avatar for chris5126
0
124
Member Avatar for girish.batra

Dear all I am still bit new in shell script area.I am writing down a shell script which I guess somewhere wrong so please kindly correct it. I would be greatful for that. What I actually want from this shell script is that it will move all the files one …

Member Avatar for girish.batra
0
107
Member Avatar for joikirk

Hi. I created 100 dummy mp3s, and I used the id3tool to change the tags on them. Each mp3 is named some number with the extension of mp3 appended to it (ex: 20.mp3). When I click on the file, the tags that I changed appear. What I'm trying to do …

Member Avatar for joikirk
0
99
Member Avatar for Imti

To implement a very primitive shell (a Toy Shell) that knows how to launch new programs in the foreground and the background. It should also recognize a few internal commands. More specifically, it should support the following features. It should recognize two internal commands: exit and cd. exit should use …

Member Avatar for eggi
0
79
Member Avatar for Ole Raptor

I am attempting to write a script that will add a user to the system. I am using fedora 5 and am attempting to use the useradd: command but i receive "command not found" I am also trying to get the current users from the system so i can check …

Member Avatar for Ole Raptor
0
107
Member Avatar for mamtha

I am using the below code to return the pid. But it works only if the pid is 4-digit. It returns nothing if the pid is 5-digit (see the examples). How do I fix this code for both the instances. Thanks in advance! Mamtha pid =ps -fu truecomp | grep …

Member Avatar for sbecker
0
93
Member Avatar for javavsdotnet

i have DSL router with an ip address a.b.c.d i want to write a Linux script, which when executed can restart the router. Please can anyone help me out? thnx in advance.

Member Avatar for DimaYasny
0
39
Member Avatar for sbecker

I doing a proof of concept script to automate getting a field from ps. Currently, the script takes 2 imputs and I'm almost there but cannot get awk to recognize $2. I want to invoke it like this: #./script init 2 (search for init and get PID). Obviously, $2 to …

Member Avatar for eggi
0
76
Member Avatar for Imti
Member Avatar for xthexonex

Hello all! I am fairly new to linux. I am using fedora7 bash. I am using an awk statement to extract several fields from a file and assign them to variables within awk. With some fields in that file and some variables made within awk i would like to use …

Member Avatar for ghostdog74
0
102
Member Avatar for ionzone

Hi, I am trying to make a shell script that will parse lines off error_log of Apache and parse IPs off of it. The lines I need to parse are security warnings made by ModSecurity. Example: [CODE][Fri Feb 22 22:18:46 2008] [error] [client 111.222.11.22] ModSecurity: Access denied with code 406 …

Member Avatar for dandan
0
205
Member Avatar for Jojo_DC

Does anyone know of a simple way of automatically sending replies to emails, which can repeat X amount of times. For example, I want to reply to an email from John Smith 20 times with "ABC" , "DEF", "EFG"....etc.. sequentially.. Thanks..

Member Avatar for eggi
0
83
Member Avatar for meak99

Looking for some help in renaming files using a shell script. Suppose I have a directory which contains several files, some of which are `*.dat` files. If there are 7 `*.dat` files, I would like to rename all 7 `*.dat` files to `*.01`, `*.02`, ... `*.07` Here is what I …

Member Avatar for eggi
0
135
Member Avatar for larryperl

[CODE]Programname=$(basename $0) # While scheduling to cron, program name is needed. Usage="Usage: $Programname [-a mtDelete/mtBackup] [-l/-L Backuplocation] [-t now/cron/hh:mm]" IsCronJob=1 # default, script will run at now. isBackUp=0 # default, it will take back up. lFlag=0 # it is optional. default value is zero LFlag=0 # it is optional. dfault …

Member Avatar for eggi
0
95
Member Avatar for chris5126

hi guys, Im in the process of writing a unix mointoring program that will monitor differenet servers all runnning solaris . I am creating a main screen with summary warnings for high cpu usage, low disk space, meta device faults, high network collisions etc. All has gone well but now …

Member Avatar for eggi
0
144
Member Avatar for abhey_1998

Hi, I am in need of writing a shell script to read, database table and email the results to a list of users. Please let me know if I could provide further info. Please assist. Thanks, -Abhey

Member Avatar for abhey_1998
0
124
Member Avatar for Prince89

Hi Friends, I am new to this forum as well as new to shell scripting. I have a problem here and i need someone to solve this. Let us consider there are two processes(abc & def).There is a script which kills these two processes(i.e killtheprocess abc). Here abc is the …

Member Avatar for chunchuwar
0
99
Member Avatar for John Jack

I want a shell script to delete files in a backup directory. The files in the directory are named according to dates. For example raw_backup071208:061727 (%y%m%d:%H%M%S). I want to compare the dates and make sure that the file is one week old before i delete it. Thanks John

Member Avatar for eggi
0
65
Member Avatar for larryperl

Here is part of my code- [Code] extrafiles1=$(ls mt.*.*.*.*) if [[ $(ls -l $file 2>/dev/null) = *$today* ]]; then if [[ $file -eq $extrafiles1 ]];then rm $file fi fi [/code] when i am running the script it's showing an error-- mtclean[239]: ./mt.log.8882.-5.1202989443474: bad number. when i just ran this command …

Member Avatar for DimaYasny
0
119

The End.