10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hey out there. I have a .sh file I am calling from cron that I am trying to use to shut down the app at midnight. I have a file that does it and works just fine if I run it by typing "bash crontabstop.sh" from a command prompt. But if I call the file from a crontab I get this output.... (5 Replies)
Discussion started by: vsekvsek
5 Replies
2. Shell Programming and Scripting
Hi All,
I have an Expect script which logs into Cisco switch, performs a show interface command. I want to read a file of ip addresses which will be passed to the expect script.
The script to read the file works, the expect script works on it's own but when i call the 'expect' script from the... (12 Replies)
Discussion started by: trinak96
12 Replies
3. Shell Programming and Scripting
Hi,
How to call a file in shell script?
I need to execute a file in shell script whether its possibel if it please give some example
please help me (4 Replies)
Discussion started by: thelakbe
4 Replies
4. Shell Programming and Scripting
have this shl that will FTP a file from the a directory in windows to UNIX, It get the name of the file stored in this variable $UpLoadFileName then put in the local directory LocalDir="${MPATH}/xxxxx/dat_files" that part seems to be working, but then I need to take that file and rename, I am using... (3 Replies)
Discussion started by: rechever
3 Replies
5. UNIX for Dummies Questions & Answers
This may sounds dumb, but can I call on a function from a file? For example, I have a function file full of functions like below (no shell designation):
func { echo "blah blah blah 1" }
func2 { echo "blah blah blah 2" }
func3 { echo "blah blah blah 3" }
Am I able to call on any one... (3 Replies)
Discussion started by: douknownam
3 Replies
6. Shell Programming and Scripting
Somewhat long story:
I have a simple Perl CGI script that uses Expect to Telnet to a device and grab some data, and then spits it back to Perl for display on the Webpage.
This works for many devices I've tried, but one device just fails, it keeps rejecting the password on this device, only... (1 Reply)
Discussion started by: jondo
1 Replies
7. Shell Programming and Scripting
I have two files:
One is a list of numbers:
1
5
6
7
10
The second is a very long string
abcdefghijklmno......1234567890
I'd like to print a new file with a 5 character substring that starts at each the positions listed in the 1st file:
such as:
abcde (4 Replies)
Discussion started by: dcfargo
4 Replies
8. Shell Programming and Scripting
Hi All ,
I have created .sql script in unix.this script contains 4 sql queries. Now I want to craete .sh file based on .sql script. So please let me know the steps to craete .sh file
Thank you. (1 Reply)
Discussion started by: user71408
1 Replies
9. Shell Programming and Scripting
I have a script that does domain name lookups, and I also have a file with one domain name per line. I would like to have a script that calls the domain name lookup script for each domain that is in the file. Any help is very much appreciated.
The text file would be something like this
... (2 Replies)
Discussion started by: jjamd64
2 Replies
10. Shell Programming and Scripting
OK, I'm very new to shell scripting, and I'm trying to write a (very) simple wrapper for sendmail that outputs all the arguments as well as the file that called sendmail to an output file which can later be looked over.
Is it possible to get a file's name and path that called a script? (0 Replies)
Discussion started by: ghstber
0 Replies