1,817 Topics

Member Avatar for
Member Avatar for notsohuman

Hello, Currently I am trying to make Windows Hyper-V and Virtual-Box coexist in the same machine, normally only one hypervisor should be running at any given time but Hyper-V runs all the time. I did some Googling and found this solution (http://derekgusoff.wordpress.com/2012/09/05/run-hyper-v-and-virtualbox-on-the-same-machine/). It works just fine, however I would like …

0
108
Member Avatar for clife

What is the meaning of INSTALL_ROOT_DIR ?= ${INSTALL_DIR}/${TARGET_ROOT_DIR} I googled for ?= in shell script , but none showed up. Thanks

Member Avatar for TKSS
0
130
Member Avatar for zortar

xhi, my task is to make a script, which displays the string read from console input in the form of 1 letters / line only. my code looks like this so far read string hossz=`expr length "$string"` for i in `seq 1 $hossz` do echo `expr substr $string $i 1` …

Member Avatar for zortar
0
296
Member Avatar for krystosan

I am trying yo create symbolic link on my mac, but when i try to run i get error saying original item searchMethod cannot be found `$ ln -s '/usr/bin/env python ~/Development/python/searchMethod/python/searchMethod.py' searchMethod`

Member Avatar for rojomoke
0
472
Member Avatar for clife

I try to run a script which has #!/bin/bash but i am getting error as "Illegal option --" /bin/sh is not bash , aborting . i try to change the first line to #!/bin/sh this time it is saying x: unexpected operator i tried runnigscript with ./ and sh, but …

Member Avatar for rch1231
0
185
Member Avatar for theashman88

![3a451fbd93eb17f84f06c7ac648bdcab](/attachments/small/2/3a451fbd93eb17f84f06c7ac648bdcab.PNG "align-left") I need to create this program for class. I'm not looking for the answer. I'm simply confused on how to create a batch file where I input a number and it gives me an option. Would I use the IF command if so how would I do it. …

Member Avatar for brooks.johnson.54
0
372
Member Avatar for martin.krivos.9

Hi i need windows command line to find all files that end with .jpg.pdf and remove the .jpg part so it will be pure .pdf at the end, i have following line for /R %DIR% %%i in (*.jpg.pdf) do set without=%i:~0,-8% & rename %%i "%%without.pdf" It should remove last 8 …

Member Avatar for dodo2013
0
473
Member Avatar for roshan_iiita

I am trying to run a shell script at a fixed time with the help of "at" command. But it doesn't seem to work. For example, I created a shell script named as "task" having content: vlc and schedule it to run at 21:52 with the command: $at -f task …

Member Avatar for alex.sergeev.311
0
690
Member Avatar for santakdalai90

I am trying to search for a shell script if it is running and then assigning the count to a variable. Let the script be ScriptXYZ.sh. I wrote: proc_count=$(/bin/ps -ef | grep ScriptXYZ.sh | grep -v grep | wc -l) The problem that I am facing is that even when …

Member Avatar for santakdalai90
0
453
Member Avatar for marethamogale

iam doing a python program and the question reads:Write a program that asks the user about textbook prices and reports how overpriced the textbooks are. (You may wish to read this number from the user with the input command. You can round numbers with the round command.) You should match …

0
105
Member Avatar for nguyenlong.0805

Hi, I begin study shell programming. I need a basic tutorial or ebook about shell script control MySQL databases (not shell command) please hellp me!

Member Avatar for L7Sqr
0
61
Member Avatar for janik

i write a following shell script to mount attached usb drives. when i run it it runs only su - command. it ask for type password. but didn't run the other commands.what can i do to run other commands? please help me su- mkdir /mnt/Usb mount -t vfat /dev/sdb1 /mnt/Usb

Member Avatar for Fest3er
0
159
Member Avatar for PriteshP23

Hello, I have one tar.Z file. I have to run shell script **daily** as it is required to update the database. customer_yyyymmdd_hhmi.tar.Z sales_ yyyymmdd_hhmi.csv (5 MB - 20 MB) purchase_ yyyymmdd_hhmi.xml (650 MB - 950 MB) I have made small part of XML file. There are 4 parts. There is …

Member Avatar for PriteshP23
0
368
Member Avatar for methuselah90

I'm currently pulling out information from column B in an Excel worksheet + the worksheet name. How would I go about pulling information from column J (which has the same start row/end row as the information pulled out from column B) in the same worksheet and assigning it to the …

0
149
Member Avatar for sonunmonu

Hi Guys: I am trying to add password to my bash script file. So, it should ask for password when anyone try to open that file. (for eg. anyone perform cat or vi command on that file it should ask for password). Thanks Sonu

Member Avatar for GrazerC0de
0
196
Member Avatar for William_6

hello, I created a awk program to work witha data file to output a table and subtotal the rows and total up the collums and average I got it to work but when i added a presentation header before my totals go away. working code so far ------ can be …

Member Avatar for William_6
0
226
Member Avatar for subhashmedhi

hi all, i have written a shell-script which logs onto a mail-server using telnet and then tries to send the HELO command. The code for the same looks something like this: [code] exec telnet 150.236.18.66 25; echo "HELO"; [/code] The problem is that though the telnet connection is established the …

Member Avatar for Tabsy
0
2K
Member Avatar for jeansantos

I need a script that connects to a device on my network and export a list of data... #!/usr/local/bin/expect -f spawn telnet hostname expect -exact "Username:" send -- "username\r" expect -exact "Password:" send -- "password\r" expect "#" send -- "command\r" interact expect "#" send -- "logout\r"` I get some desired …

Member Avatar for masijade
0
413
Member Avatar for ashwil

Hi, I need to filter and remove files which are older than a month from a Unix folder. I got the below command from Daniweb. find /path/to/directory -type f -mtime +31 -exec ls -ltr {} \; Can I use this command in ksh script? Does the file name need to …

Member Avatar for masijade
0
198
Member Avatar for mukulnimker7751

Hi All, I need to access cmd of a remote server from local machine using batch scripting or shell scripting. Can anyone help me out in this. I need this very urgently. Regards Mukul

Member Avatar for mukulnimker7751
0
229
Member Avatar for chris.kelley.5015

Hello, I am trying to create a script that will compare one word at a time from one file to every word in a second file. I know how to design nested for loops to read the first entry in file1 and compare it to every entry in file2, so …

Member Avatar for Watael
0
264
Member Avatar for axn

sed - need to replace only the chars or symbol after 1st and 2nd dot(.) with "int1" and "int2" respectively. Here is what I have tried but it replaces the strings in other lines. End result should look like - A.**int1**.**int2**.any.string.here sed -e 's/*/int1/' -e 's/*/int2/' -e 's/ABCD/int1/' filename A.*.*.ABCD.DEFG.HIJK …

Member Avatar for chris.kelley.5015
0
169
Member Avatar for overwraith

Hello, am having some trouble with Windows batch variable expansion. Am trying to make a script that will make a list of all currently plugged in drives. I want to omit the system drive, since that one shows up as a blank letter. The following script can be copy+paisted directly …

Member Avatar for overwraith
0
146
Member Avatar for hemanshurpatel

Hi, I need to fetch mail body from the local stored mailbox file. I'm using fetchmail and procmail to download emails from IMAP server and filterout unwanted one. From the list of emails, I want to process one by one and get their body and store it. the format of …

Member Avatar for hemanshurpatel
0
667
Member Avatar for rectifryer

I am currently trying to use the "find" command with symbollic links created by a tcl script that are pointing at another file in another directory (RH5). My script is written in bash, however: find /home/directory/subdirectory -name *.gz -type f -printf '%T@ %p\n' | sort -n | tail -n 1 …

Member Avatar for rectifryer
0
161
Member Avatar for leghorn

Hi I have a linux server with mysql installed.There is some data in mysql tables. Also.I have a .csv file (not from the aforementioned database) I need to compare the data in the database nad the .csv and print out the difference. I tried writing a shell script for that …

Member Avatar for leghorn
0
280
Member Avatar for leghorn

I have an associative array named table declare -A table table["apple"]="fruit" table["tomato"]="veggie" table["highway"]="GT" table["artist"]="eminem" Now say I have a variable returning the value highway How do I find corresponding value GT ?? (this value that I find (GT in this case) is supposed to be the name of a mysql …

Member Avatar for masijade
0
89
Member Avatar for JukesK

i've just given a script to update and maintain by my manager, but its bash and i dont know that much about it.. i currently have a script that looks through .txt files for given serials that then reports to a php webpage. within this script we have around 20 …

Member Avatar for Watael
0
282
Member Avatar for krystosan

I am a pythoneer, guess List is called hash in shell script , I want to know how to do this for arg in "$@"; do echo `pwd`'/'$arg; done how do i pass the collected this list of items in $args to a different applications that takes these items as …

Member Avatar for L7Sqr
0
125
Member Avatar for chophouse

I'm not sure exactly which forum to ask this,so I'm starting here, I have a cron job I want to execute every 72 minutes. I've researched how to schedule the job for an interval of 60 min or less, but is there a way to specify a minutes interval when …

Member Avatar for Watael
0
568

The End.