Visit Experts Exchange from your mobile device to search, ask, and monitor your questions. Never lose touch again.

Preview From Your Desktop
 

Having problems asking a question? Have a general question about Experts Exchange? Let us know!

 
Time Tested Shell Scripting Solutions: 1 - 25 of 299
 
I have to write a shell script that checks for the word SUCCESS in the log file . If It didnt find the word SUCCESS in the log file then an error message should go out. My script: #!/usr/bin...
Hi Experts, I need some help, I want to read a file and store each line as an item in the array. Thanks Hussain
Hey guys Got a problem. I need to create a script that automatically uninstalls ICS Viewer 6.0. I need help on how to tackle this. After some research, turns out PureEdge does not support qu...
I am automating the use of robocopy from the WIndows Server 2003 Resource Kit. I have been unable to find any information on the exit codes.  From what I can tell, anything less than 8 is a...
I am attempting to write a cron job that will move two files onto an sftp server, then create a directory with the date as its name, and move the files into the directory. So far I have the co...
Hi I need to run a sql query each day which retrieves  data based on a numerical incremental (MAXID) value.   I want then to store the max value from last query ran in a file (tempid) and th...
Hello all! I have been trying to put together a BASH script which uses Expect within the script. A parameter of another script gets passed to this BASH script, which then passes to the Expect ...
how to copy folder from one unix server to another unix server using ssh.
In below script i want to take username & server login password from txt file , give me solutions for creating them.   REMOTESERVER="serverA serverB serverC" export REMOTESERVER for serv...
Dear experts, Is there any UNIX command to list out file with the full path? for e.g i type the command "abc /tmp" it will list out: /tmp/file1 /tmp/file2 /tmp/directory1/file1a /te...
How can I print in a C script, the time and hour of the Unix system???
Hi friends, I like to have basic interview questions for unix shell programming and the popular unix interview questions. If you have any good material then please share it with me. p...
I have a program that outputs text in the normal output stream, and in the error stream. If I want to capture both outputs, I can do as follows: ./myProgram  2>&1 | tee log.txt However,...
i am using $PVT_Config in my script.. when i do echo shows me value of variable but after that i am using in script won't work..even not allow me to export that value.. i try to export var...
I know that Unix find command can be used to search for a file and then execute a command for a returned file like below find /root_dir -name "filename" -exec chmod g+x {} \; After the -...
Is there an SSH command I can run using Putty that will Take the contents of One directory and put it into another? So that if Dir A has: File 1 File 2 File 3 I can move all th...
How to read special characters in bash shell? I need to read 2 file names which could contain special characters, like $ # etc. I am appreciate someone can help me with this. this code is r...
hello. i want to write a shell script which copy the file from another server to my box using SFTP. can you provide me the example script to do it. Thanks in advance
I've got a shell script, it looks for URLS in a file and does stuff. (See code below) The if statement here if [ -f "$CACHEFILE" -a -n $(grep -i $(basename $url) "$CACHEFILE") ] ; then ...
I am using this vbscript to copy files form one local drive to a network drive: Dim objFSO:Set objFSO=CreateObject("Scripting.FileSystemObject") Dim objFolder:Set objFolder=objFSO.GetFolde...
Because some users in my AD database have a different displayName than their Canonical Name (CN) and Exchange only seems to have the displayName in common with AD, I'm trying to create a vbscr...
I need to have a linux shell script (RHFC2) that will search a folder for a specific ext (eg. .dom) parse the file to get the first line of data (data1 data2 data3) separated by spaces.  The s...
hi i want copy folder from one server to another one with timestamp. using scp or ssh.
Hi, I would like to create a shell script to compare 2 files. content of file1: 1,2,abcd,4 2,2,abcd,4 3,4,bcde,5 5,5,xcvb,6 content of file2: 0,2,abcd,4 1,2,abcd,4 2,2,abcd,4 3,4,...
how can i CAT a file into another from a specific line ?