Issue when executing shc command

Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Issue when executing shc command
# 1  
Old 03-03-2014
Issue when executing shc command

Hi All,

I am trying to create an executable using shc. I have a script which is creating 10 executables. The executables being created have the below issue.

The message "Please contact your provider" is displayed even though I am not using the “-e” option.

This message is coming for some executables being created, i.e. out of 10 executables which are created, say 4-5 executables have this issue. And when the next time I am creating the executables again, again the same issue exists but it may be for some other executable.

Command to create executable:
shc -r -f < executable_name>
1) Executable1
2) Executable2
3) Executable3
4) Executable4
5) Executable5
6) Executable6
7) Executable7
8) Executable8
9) Executable9
10) Executable10
When I run the executable I get the message
” Executable1: has expired!
Please contact your provider”
Next time I create the executable, same issue may or not be present for Executable1 but is present for some other executable.

Even if I specify the “-e” clause I still face the same issue.
shc -r -e 10/01/2020 -f <executable_name>
Please suggest how to solver this issue.

# 2  
Old 03-03-2014
We do not have a crystal ball, we cannot see your computer from here, please post your code.
# 3  
Old 03-03-2014
Just run following and test whether shc is creating executables
$ shc -v -r -T -f your_shell_script

This User Gave Thanks to Akshay Hegde For This Post:
# 4  
Old 03-04-2014
@Corona688: I have already written that part where the executable is created. Which code are you referring to now?
@Akshay Hegde: Let me try this option as well. Will let you know.
# 5  
Old 03-04-2014
Originally Posted by temp_user
@Corona688: I have already written that part where the executable is created. Which code are you referring to now?
The code you are feeding into shc. It is obviously relevant.
This User Gave Thanks to Corona688 For This Post:
# 6  
Old 03-05-2014
I was able to solve the issue. The problem was present in the way shc was installed. It was installed by someone else and i re-installed (ie make file) and it worked fine.
Thank you all for your inputs and suggestions
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Issue executing grep command on Solaris

more jdbc.xml <name>Fast_ds/DataSource</name> <property> <name>user</name> <value>COL_USER</value> </property>Command 1: grep -A1 '<name>user</name>' jdbc.xml|grep -v '<name>user</name>'|sed 's/\(<value>\|<\/value>\)//g'| sed -e 's/^*//'Output: Command 2: grep... (5 Replies)
Discussion started by: mohtashims
5 Replies

2. HP-UX

Shc command for hp UNIX 11.23 itanium

(2 Replies)
Discussion started by: sagar_1986
2 Replies

3. Shell Programming and Scripting

Issue in executing cat (remote ssh)

Hi, I need to ssh remotely to a machine and cat a file assign the value to a variable Script: #!/bin/bash -x value=`cat config.txt` echo "$value" ssh "valu='cat /export/home/test.md5'; echo "$valu"" | tee Execution: $ ./x ++ cat config.txt + value='touch me' +... (5 Replies)
Discussion started by: close2jay
5 Replies

4. Shell Programming and Scripting

Issue on executing db2 queries through shell script

hi i am trying to execute db2 queries through shell script. it's working fine but for few queries is not working ( those queries are taking time so the script is not waiting to get the complete the execution of that query ) could you please any one help me on this is there any wait... (1 Reply)
Discussion started by: bhaskar v
1 Replies

5. Shell Programming and Scripting

Issue while executing C executable with argument in shell script

Hi All, I am new to this forum and also shell script :) My task is I have to read CSV file get the data from the file and use the data to call c executable with data as argument.And the output from c executable should be stored to new CSV file Please find below my code testfunction() {... (14 Replies)
Discussion started by: ravjot28
14 Replies

6. Shell Programming and Scripting

Issue while executing script

Hi, I'm trying to use the below command in a shell script, but couldn't. The command is working fine when I'm executing from the dollar prompt i.e. shell. Command: grep -i fail /home/applmgr/error.log |egrep -i "`date --date="-4 day" +"%m/%d/%Y"`|`date --date="-4 day" +"%m/%d/%y"`"... (8 Replies)
Discussion started by: venkatesh17
8 Replies

7. Shell Programming and Scripting

shc compiler issue

I am using the shc shell compiler, it works fine, just that when i execute it, it displays the code at the terminal. Is there any way to hide this as well? otherwise it beats the purpose of hiding the code. Thanks ! (7 Replies)
Discussion started by: ysvsr1
7 Replies

8. Shell Programming and Scripting

Need help - shc

I have two scripts and is calling is having some functions and password which we are using in #!/bin/sh . echo "$test" #!/bin/sh test=pravinO/P pravin Now use shc to protect my and i modified... (5 Replies)
Discussion started by: pravin27
5 Replies

9. Shell Programming and Scripting

Help with shc

Hi all, I'm trying to install shc on my clean solaris 10 so that I could do some encrypting on my shell scripts. I've tried several ways but it gave me these error messages # make cc -Wall -O6 shc.c -o shc cc: illegal option -Wall *** Error code 1 make: Fatal error: Command failed... (6 Replies)
Discussion started by: solarisnoob
6 Replies

10. Shell Programming and Scripting

Problems using shc

Hi all! First of all, sorry for my poor english :-S Well, I have some scripts in a SuSe server to encrypt... but all them must still working when I encrypt it, ok? About the server, I have root access: # id uid=0(root) gid=0(root) groups=0(root) # uname -a Linux servername... (4 Replies)
Discussion started by: Magius
4 Replies
Login or Register to Ask a Question