Member Avatar
Hi i have a shell script named script .sh that create maven project having parent pom and multiple modules under it as follows: ... I want to run this script from java code i am using mac osx i tried every thing my code that is opening this script is …
by khaled_jawaher -2 in Programming ()
Member Avatar
Hi all, Can you please tell me if there is a bash command in UNIX that is similar in functionality to XCOPY in Windows? XCOPY can copy who directory trees from a source folder to a destination folder, but from what I saw about the cp command in bash, it …
by Shane_Warne 91 in Software Development ()
Member Avatar
I making a program that identifying the word position in a sentence. For example, in the sentence ASK NOT WHAT YOUR COUNTRY CAN DO FOR YOU ASK WHAT YOU CAN DO FOR YOUR COUNTRY The word 'COUNRTY' appears in the 5th and 17th positions. This is what I have so …
by nic56208 in Software Development ()
Member Avatar
i never used VBScript. how can i use win32 functions?
by cambalinho 14 in Software Development ()
Member Avatar
I am trying to build a program for transferring files to an arduino project with an attached sd card. I have some code, it does some interesting stuff, but it's not quite what I want it to do. What I need it to do is to be able to transfer …
by overwraith 57 in Software Development ()
Member Avatar
I am very new to powershell and I am attempting to import multiple csv files into a SQL database. I have it working if I specify the file but I want to have it import multiple files from a specific folder. The way it's working right now, it will import …
by TJoF in Programming ()
Member Avatar
I need to write a shell script that will filter out all files in a directory that are more than two months old and then remove those files. Example: Suppose I am running this script on May 1st 2007. It should list out all files which are created before Mar …
by abhilashnair in Software Development ()
Member Avatar
Hi, please can anyone help me with the following issue? issue: todays date is 20150819 and my data contains date as 20141001. I want to read this date i.e. 20141001. please tell me how to read the previous year date??
by Manish_10 in Software Development ()
Member Avatar
For loop is not working with expect in pgp encyption script. ========= -bash-4.1$ more TestScriptPGP.sh !/bin/bash !/usr/bin/expect -f for i in ... do spawn /opt/PGP/pgp -e +force $i "<abc@gmail.com>" expect "Are you sure you want to use" send "y\n" expect "$" done; -bash-4.1$ ./TestScriptPGP.sh ./TestScriptPGP.sh: line 5: spawn: command not …
by ananddvk in Software Development ()
Member Avatar
input.txt is a file that contains filenames that have been piped into it from an external program. for example... input.txt has the following in it filename1.txt filename2.txt filename3.txt I would like to perform an 'rm' command on the filenames contained in input.txt So instead of potential hours of work deleting …
by script_noob in Software Development ()
Member Avatar
I am trying to get in the habit of practicing coding on daily basis. I decided to try do do tic tac toe in powershell. This took my a rediculous amount of hours to finsh. I am glad to be done. Nest projec will be something more useful like automating …
by shanenin in Software Development ()
Member Avatar
I have a mobile VPN client that I want to backup to. The problem is that it does not have a static IP to due it being L2TP/IPSec. Thats the bad news. The good news is that there wont be too many VPN clients (at most 10 if that) so …
by riahc3 45 in Software Development ()
Member Avatar
I'm looking for the best way to back cold backups of the email on my client's PC. Starting off with PowerShell, I would run this: ... To search where the email file is. I would have to search for Thunderbird as well. This would run each time the user shuts …
by riahc3 45 in Software Development ()
Member Avatar
I see most PowerShell questions being asked in Shell Scripting and its not really a scripting language per say as it is much deeper than that. I porpose it gets its own section...
by riahc3 45 in DaniWeb Community Feedback ()
Member Avatar
Hi, I have the a file which contains information as mentioned in the below format. ... I am using below commands to extract entries which have proper ip address and value of DLBbytes or ULBbytes greater than zero. ... that means the entries like IP:0.0.0.0/0 DLBytes:0 , IP:20.20.20.xx DLBytes:0 should …
by clife in Software Development ()
Member Avatar
I don't understand why my function is not giving similar output as the first example of powershell code ... My function using similar logic ... I would expect the output to say "The Answer is 9" instead of "The Answer is 3 6" What am I doing wrong?
by shanenin in Software Development ()
Member Avatar
I have a requirement to generate an auto ticket/email when it's time for a scheduled task to be done and it should repeat again when it's time for performing the task. Could you please help me with the script/how this can be done I'm gathering the information to a table …
by Manikanta Sharma in Software Development ()
Member Avatar
find /home/scott/xyz -name ".log" -not -name 'access.log' -not -name 'server1.log'-exec cp -i {} /home/scott/zxc/. \; I want to run this command but It doesn't seem to work for two files.How can I achieve this?
by sachin19 in Software Development ()
Member Avatar
I have two text files one file contains values as ... In other file i have ... I have to match between Id's and the corresponding strings in the value column and find the string correctness. How can this be done? Can it be done with shell script or should …
by sheelakumari in Software Development ()
Member Avatar
Hi, Below is the code i am using. On console output is fine but when i am redirecting output to file then single line is breaking in multiple lines. Please help. ... **Output on Consloe : ** buckets/, apr_bucasdfsadfa_fasdfasfaool.lo, apr_buckets_simpleapr_buckets_simple.lo, apr_buckets_socketapr_buckets.lo, apr_buowekrfwqereqjncckets_reqwer.lo build/, config_vars.sh.in, export_varsexport_varsexport_vars.pl, mkdepphf_abuse_logphf_abuse_logp.perl, rules.mksocketapr_buckets.insocketapr_buckets include/, util_md5util_md5util.h, util_scriptutil_scriptutit.h, …
by ManojRajput in Software Development ()
Member Avatar
I have (roughly) the following code: ... I keep getting the literal output of "${WHATIS}. I did this ages ago but can not remember how or find the code I used. Any help would be appreciated
by ennoil in Software Development ()
Member Avatar
Hello again dear Daniwebians, I am asking for some ehlp again. I wrote a littel cript as part of my assigment. My script does what it is suppose to do, but when I run it, it does not end on its own, I have to stop it by "killing" the …
by larin83109 in Software Development ()
Member Avatar
Hi All, I need your valuable suggestion as how to sort the log files based on timestamp. Below is the sample log content. string May 28 22:07:48 2015 Log data string May 28 22:07:48 2015 Log data string May 28 22:07:48 2015 Log data I would like to sort based …
by mkoliwad in Software Development ()
Member Avatar
Team, Presently i have some 20 files which i need to copy and store in the common directory. below is the example: script name: dir.sh cp /tmp/abc /home/abc/xyz cp /tmp/def /home/abc/xyz cp /tmp/hij /home/abc/xyz The above script is run, it copies the source files on the destination directory(xyz), wanted to …
by whizkidash in Software Development ()
Member Avatar
I have a question is there any possibility for maken a script that you can see if computers are on in your network when you run the script for ex. ./ping.sh 54 62 62 , a script when you give as argument the last digit of the ip adres of …
by Kevin_17 in Software Development ()
Member Avatar
Writing a PSUnit test case where I need to get a specific value from a single row in the data table that was generated from my separate powershell function. To do this I figured I could use a foreach loop, but I am not sure how to write the inner …
by Ian_7 in Software Development ()
Member Avatar
Write a script which accepts some number of arguments and outputs those arguments sorted into alphanumerical order, with each argument on its own line. im usin linus
by Conor_1 in Software Development ()
Member Avatar
Hi guys , i have found command to extract the output of a command and save it in a file. But I want whenever I extract the data from a command , it should start from a particular line ? I am using this command below to extract data of …
by Gurjit_1 in Software Development ()
Member Avatar
We have QA automation jobs that invoke user interface tests in Firefox running on a virtual Linux host. My tests perform regression, but I'm held up because of the Firefox This Connection is Untrusted warning. My current requirement is to ignore this connection untrusted warning, which comes up when accessing …
by hussainv1 in Software Development ()