1,891 Topics

Member Avatar for
Member Avatar for riahc3

Hello I want to make a simple bat file in Windows 7 but the command (route) only works in admin mode so I would have to ask for admin premissions. How do I do this in a bat file? Thank you

Member Avatar for riahc3
0
110
Member Avatar for lena1990

i want to create a shell script that divide a text file to parts and take the information from each part and store it

Member Avatar for Watael
0
97
Member Avatar for observ

I have an batch script that needs to concatenate several hundred of lines (72 chars) in one long line for base64 to decode. He used line reading because of the windows XP line limit (8191 chars per line). The script currently has 2 issues at result: It exports with 2xquote …

0
175
Member Avatar for Ashley1966

This script is supposed to ssh to the server, which it does and then it supposed to say "case is correct" on the name of the server that the person entered if the case is correct (upper or lowercase). However, it works except that it never returns a servername. I …

Member Avatar for Watael
0
109
Member Avatar for ivan.lilo.rybansky

Hi, i have to write/as homework/ a script that shows list of all users ,users belong to group (which is main group for every user has been showed) defined as parameter of script. In the case of -c, show count of those users. TIP: /etc/passwd, /etc/group

Member Avatar for Watael
0
232
Member Avatar for stupendousomega

I understand that variables are global unless otherwise stated local, but for some reason, (and it's probably my own stupidity) it's not working. I have searched around to no avail. #!/bin/bash function a { echo $1 } echo $1 a Say you pass the word car to it. It should …

Member Avatar for Watael
0
139
Member Avatar for kgal

I'm trying to write a program that will ask the user to input the number of values he wants, prompt him for the values and then print out the maximum value and the minimum value. This is what I have so far: count=1 echo "Enter number of integers" read n …

Member Avatar for 1234brut
0
686
Member Avatar for shreya19

Which command is used to copy all files having the string chap and any two characters after that to the progs directory?

Member Avatar for Watael
0
101
Member Avatar for harpoon35

Hello, I was trying to combine some commands but having a little trouble. In a single command I want to call the script dvdcoll2 and accept input from dvdcoll1. Then I want to put stdout into dvdcoll3, and stderr into dvderror. How do I string together four commands in a …

Member Avatar for Watael
0
103
Member Avatar for kandarpa

Hi there, I want to check whether a file is a link or not. Eg: I have a directory structure as follows: mkdir -p abc/bcd/cde/def touch abc/bcd/cde/def/file cd abc/ ln -s bcd link Now, abc/link/cde/def/file is actually not a file. Its a link Now I want to remove this file …

Member Avatar for Watael
0
208
Member Avatar for overwraith

I am working on a "for loop that finds all the drives on a system that match a given criteria and am trying to accumulate the drive letters into a list(string) which I can then pipe to a command which will do something to those drives. I do not use …

Member Avatar for overwraith
0
223
Member Avatar for samsons17

Hi there, I have the xml file (HSBB_voice_20120925_0000000182.cdr.bc_lerr.xml) that contains data between tags that i want to extract. The sample data from the xml file that i have etracted is like below : ----------------------------------------------------------------------------------- <record record_no = "62" error_code="100">D20|000000063|56604960 071411E2 BC9D24B6 FDB63DEA|6088342010|0166662635|DEFAULT|1348579536|1348579538|3|0|IDD|Flat Rate <record record_no = "63" error_code="100">D20|000000064|7A257C4E 071411E2 BC9D24B6 …

Member Avatar for Watael
0
187
Member Avatar for vishankparikh

Q-1 Write a shell script in Unix that lists files from your current working directory · By modification time when called with lm · By access time when called with la. By default, the script should show the listing of all the files in the current directory. Q-2 Write a …

Member Avatar for sbesch
0
145
Member Avatar for umesh314

Hi, I am trying to write a code in which i want to read the command line arguement ( which i can get by using $(0,1,...) ) and want to give the arguement to some filename. Eg. ./myprogram filename.cpp I want to remove ".cpp" from the filename and want to …

Member Avatar for Watael
0
201
Member Avatar for daino

What language are CMAKE Makefile (CmakeLists) written in? As for other Makefiles are they written in the same language. For example a Makefile.gcc to be compiled using a MingW compiler?

Member Avatar for L7Sqr
0
90
Member Avatar for Borzoi

I am trying to write a shell script but I only want it to run if there are no files with a specific name found on the server. I know how to check for a specif file which would be done like this: if [ -f /path/to/file ] then echo …

Member Avatar for Watael
0
275
Member Avatar for Upendra76

I am triying to write a shell script which do the following steps: 1)Check the status of File (ie:Rejected,Processed and Processed_with_errors) from Database(i am using TOAD tool). 2)If the file is rejected ,then the script should immediatly send a MAIL ALERT to me. 3)If the file is processed_with_errors with mare …

Member Avatar for L7Sqr
0
330
Member Avatar for axn

I.*I need to validate if characters a-z are entered it will reprompt*. Below is a snippet of my script wh While [true] do mainMenu # menu function read $opt # read option from menu if [ $opt -eq 0 ]; then exit elif [ $opt -gt 4 -o $choice -lt …

Member Avatar for Watael
0
202
Member Avatar for vinay7868
Member Avatar for Watael
0
94
Member Avatar for doa.sdude

<ns:Address> <ns:StreetNumber>XXXXX</ns:StreetNumber> <ns:CityName>XXXXXX</ns:CityName> <ns:StateProvNamePA</ns:StateProvName> <ns:ZIP>XXXX</ns:ZIP> <ns:AddressID> <ns:ID SystemCode="CODE">10</ns:ID> </ns:AddressID> </ns:Address> <ns:Address> <ns:StreetNumber>XXXXX</ns:StreetNumber> <ns:CityName>XXXXXX</ns:CityName> <ns:StateProvNamePA</ns:StateProvName> <ns:ZIP>XXXX</ns:ZIP> <ns:AddressID> <ns:ID SystemCode="CODE">10</ns:ID> </ns:AddressID> </ns:Address> <ns:Address> <ns:StreetNumber>XXXXX</ns:StreetNumber> <ns:CityName>XXXXXX</ns:CityName> <ns:StateProvNamePA</ns:StateProvName> <ns:ZIP>XXXX</ns:ZIP> <ns:AddressID> <ns:ID SystemCode="CODE">10</ns:ID> </ns:AddressID> </ns:Address> <ns:Address> <ns:StreetNumber>XXXXX</ns:StreetNumber> <ns:CityName>XXXXXX</ns:CityName> <ns:StateProvNamePA</ns:StateProvName> <ns:ZIP>XXXX</ns:ZIP> <ns:AddressID> <ns:ID SystemCode="CODE">10</ns:ID> </ns:AddressID> </ns:Address> I am tryting to Spilt a File into number of …

Member Avatar for L7Sqr
0
252
Member Avatar for aworodion
0
44
Member Avatar for saamsonn

#!/bin/csh echo -n "Enter a value> " set a = $< echo -n "Enter another value> " set b = $< echo "Doing mathematics> " @ r = $a + $b echo the sum a + b is $r tried runing this script and I keep getting this error report …

0
134
Member Avatar for america9

Hi, I am trying to develop a windows batch file /vbscript, where the script automatically opens an .exe (like for ex: notepad.exe) and selects the file menu and scroll to a particular file menu subitem . This is the code i have so far : Set WshShell = WScript.CreateObject("WScript.Shell") WshShell.Run …

0
57
Member Avatar for jason.lopeman

Good morning. I'm not sure if this is the correct forum to post this question, and if its not, please direct me. I have a script that lists the last logons for all users on all domain controllers in my domain. I've been asked to modify the script to exclude …

Member Avatar for BitBlt
0
237
Member Avatar for Jbvo

I am tring to call the same subroutine several times. The first time it runs it works correctly. Everytime after the first time it doesn't run the subroutine in order. I was wondering if anyone knows how to do this. Here is my current script. @echo off set description=Disabled %date:~4,2%-%date:~7,2%-%date:~10,4% …

Member Avatar for Jbvo
0
169
Member Avatar for dekker13

I've completed an assignment which takes a file with records, sorts them, and creates a table with the utility 'latex'. The interesting part is that my scripts runs perfectly on my Mac (Darwin) but it runs slowly with no response (or doesn't work depending on how you look at it) …

0
124
Member Avatar for akileshb
Member Avatar for code_r

Hi I'm writing a shell script and I'm trying to get a starting number and an ending number from the user. So if the users starting number is 3 and the ending number is 4, my program should print out 4 5 6 7 as the consecutive numbers. My problem …

Member Avatar for Watael
0
151
Member Avatar for Pooja#

Can anyone explain me the below and please tell me why it is not accepting large number of strings. sed ':a;s/(([^,|]+)[|,].*)\2/\1/;ta;y/,/|/;s/||/|/g' file_nm

Member Avatar for Pooja#
0
284
Member Avatar for lehe

Hi, I am reading a command in shell script using sed: echo $1 | sed -e "s/^[^=]*=\(.*\)$/\1/" what I don't understand is the sed command. I only know it tries to substitute "^[^=]*=\(.*\)$/" with "\1" and 1 is one of the positional parameters got from invoking the shell script, but …

Member Avatar for Pooja#
0
164

The End.