1,891 Topics

Member Avatar for
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
369
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
150
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
197
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
230
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
418
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
199
Member Avatar for pawan768

Hi, Im working on a PHP script in which I have to run shell script, I have 2 option , 1. If im able to send php veriable value to shell 2. Or i can write shell directly in PHP I used shell_exec(dirname(__FILE__) ."/shl.sh"); for execute shell .... Now the …

Member Avatar for minitauros
0
243
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
230
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
268
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
170
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
672
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
162
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
90
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
126
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
571
Member Avatar for leghorn

the output of both is the same .. could anyone please explain the working dynamcis ? Thanks

Member Avatar for masijade
0
148
Member Avatar for leghorn

we know perl gives us the facility to use hashes %ages = ('Martin' => 28, 'Sharon' => 35, 'Rikke' => 29); what if I want to do the same thing in shell script ?? thanks

Member Avatar for masijade
0
152
Member Avatar for Deva.VG

Hi, The below link provides a solution to access snipping tool using shell script, but the same is not working against windows-8 http://www.mrexcel.com/forum/excel-questions/497620-shell-snipping-tool-returns-run-time-error-53-file-not-found.html Please suggest us to use snipping tool against shell scripting in Windows-8

0
94
Member Avatar for np complete

In our college we practice python on ssh. This command prints all the computers ( processes ) logged in. ps -A | grep bash I was wondering how to obtain my process ID for that session.

Member Avatar for L7Sqr
0
284
Member Avatar for Siberian

I hope this is the correct area for this post, I'm not to sure where it would fall into, regarding SSH ? Onto my question, is there a method to access Vi or Nano to find the exact path where a directory lies in the <root> directory ?

Member Avatar for JeoSaurus
0
115
Member Avatar for msrikanth

Hi, How should i store "hex" or "oct" values in C-Shell and display them. Thanks Srikanth M

Member Avatar for JeoSaurus
0
89
Member Avatar for mathura.shreedher
Member Avatar for Violet_82

Hi all, I was wondering if anybody can enlighten me on when it is best to separate javascript code in different script. Let me give you a practical example. I have a script that I would like to run everytime the page is resized, so I am thinking to use …

Member Avatar for Violet_82
0
273
Member Avatar for popa1

Hi, I want to write a batch file which will 1.Open windbg debugger 2.Perform "attach to process" to my program. 3.Will create and then will save the dump file. 4. Perform Detach to the process. 5. Close windbg debugger Can anybody help me with it? thanks Popa.

Member Avatar for agrothe
0
118
Member Avatar for Rahul47

I dont know what caused such a filenames and i am not able to remove these files. $ ls A????cd new????cat> >> A A????cd new????cat ????A Desktop Downloads file.sh menu.sh new new1.sh new.sh Pictures rename Videos A????cd new????cat |A A?echo A Documents even.sh filetest.sh Music new1.lst new.lst palindrome.sh Public Templates …

Member Avatar for Rahul47
0
205
Member Avatar for arunkumarch

Hi I want to check wether user exist in server or not uisng shell script? can any one help me regarding this

Member Avatar for CrazyDieter
0
268

The End.